@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.EndpointStatuspublic String getStatus()
Enum that indicates the Status of an AppInstanceUserEndpoint.
AppInstanceUserEndpoint.EndpointStatuspublic EndpointState withStatus(String status)
Enum that indicates the Status of an AppInstanceUserEndpoint.
status - Enum that indicates the Status of an AppInstanceUserEndpoint.EndpointStatuspublic EndpointState withStatus(EndpointStatus status)
Enum that indicates the Status of an AppInstanceUserEndpoint.
status - Enum that indicates the Status of an AppInstanceUserEndpoint.EndpointStatuspublic void setStatusReason(String statusReason)
The reason for the EndpointStatus.
statusReason - The reason for the EndpointStatus.EndpointStatusReasonpublic String getStatusReason()
The reason for the EndpointStatus.
EndpointStatus.EndpointStatusReasonpublic EndpointState withStatusReason(String statusReason)
The reason for the EndpointStatus.
statusReason - The reason for the EndpointStatus.EndpointStatusReasonpublic EndpointState withStatusReason(EndpointStatusReason statusReason)
The reason for the EndpointStatus.
statusReason - The reason for the EndpointStatus.EndpointStatusReasonpublic String toString()
toString in class ObjectObject.toString()public EndpointState clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.