@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EndpointState extends Object implements Serializable, Cloneable, StructuredPojo
A read-only field that represents the state of an AppInstanceUserEndpoint
. Supported values:
ACTIVE
: The AppInstanceUserEndpoint
is active and able to receive messages. When
ACTIVE
, the EndpointStatusReason
remains empty.
INACTIVE
: The AppInstanceUserEndpoint
is inactive and can't receive message. When INACTIVE,
the corresponding reason will be conveyed through EndpointStatusReason.
INVALID_DEVICE_TOKEN
indicates that an AppInstanceUserEndpoint
is INACTIVE
due
to invalid device token
INVALID_PINPOINT_ARN
indicates that an AppInstanceUserEndpoint
is INACTIVE
due
to an invalid pinpoint ARN that was input through the ResourceArn
field.
Constructor and Description |
---|
EndpointState() |
Modifier and Type | Method and Description |
---|---|
EndpointState |
clone() |
boolean |
equals(Object obj) |
String |
getStatus()
Enum that indicates the Status of an
AppInstanceUserEndpoint . |
String |
getStatusReason()
The reason for the
EndpointStatus . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setStatus(String status)
Enum that indicates the Status of an
AppInstanceUserEndpoint . |
void |
setStatusReason(String statusReason)
The reason for the
EndpointStatus . |
String |
toString()
Returns a string representation of this object.
|
EndpointState |
withStatus(EndpointStatus status)
Enum that indicates the Status of an
AppInstanceUserEndpoint . |
EndpointState |
withStatus(String status)
Enum that indicates the Status of an
AppInstanceUserEndpoint . |
EndpointState |
withStatusReason(EndpointStatusReason statusReason)
The reason for the
EndpointStatus . |
EndpointState |
withStatusReason(String statusReason)
The reason for the
EndpointStatus . |
public void setStatus(String status)
Enum that indicates the Status of an AppInstanceUserEndpoint
.
status
- Enum that indicates the Status of an AppInstanceUserEndpoint
.EndpointStatus
public String getStatus()
Enum that indicates the Status of an AppInstanceUserEndpoint
.
AppInstanceUserEndpoint
.EndpointStatus
public EndpointState withStatus(String status)
Enum that indicates the Status of an AppInstanceUserEndpoint
.
status
- Enum that indicates the Status of an AppInstanceUserEndpoint
.EndpointStatus
public EndpointState withStatus(EndpointStatus status)
Enum that indicates the Status of an AppInstanceUserEndpoint
.
status
- Enum that indicates the Status of an AppInstanceUserEndpoint
.EndpointStatus
public void setStatusReason(String statusReason)
The reason for the EndpointStatus
.
statusReason
- The reason for the EndpointStatus
.EndpointStatusReason
public String getStatusReason()
The reason for the EndpointStatus
.
EndpointStatus
.EndpointStatusReason
public EndpointState withStatusReason(String statusReason)
The reason for the EndpointStatus
.
statusReason
- The reason for the EndpointStatus
.EndpointStatusReason
public EndpointState withStatusReason(EndpointStatusReason statusReason)
The reason for the EndpointStatus
.
statusReason
- The reason for the EndpointStatus
.EndpointStatusReason
public String toString()
toString
in class Object
Object.toString()
public EndpointState clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.