#[non_exhaustive]pub struct AppInstanceUserEndpoint {
pub app_instance_user_arn: Option<String>,
pub endpoint_id: Option<String>,
pub name: Option<String>,
pub type: Option<AppInstanceUserEndpointType>,
pub resource_arn: Option<String>,
pub endpoint_attributes: Option<EndpointAttributes>,
pub created_timestamp: Option<DateTime>,
pub last_updated_timestamp: Option<DateTime>,
pub allow_messages: Option<AllowMessages>,
pub endpoint_state: Option<EndpointState>,
}Expand description
An endpoint under an Amazon Chime AppInstanceUser that receives messages for a user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a user.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.app_instance_user_arn: Option<String>The ARN of the AppInstanceUser.
endpoint_id: Option<String>The unique identifier of the AppInstanceUserEndpoint.
name: Option<String>The name of the AppInstanceUserEndpoint.
type: Option<AppInstanceUserEndpointType>The type of the AppInstanceUserEndpoint.
resource_arn: Option<String>The ARN of the resource to which the endpoint belongs.
endpoint_attributes: Option<EndpointAttributes>The attributes of an Endpoint.
created_timestamp: Option<DateTime>The time at which an AppInstanceUserEndpoint was created.
last_updated_timestamp: Option<DateTime>The time at which an AppInstanceUserEndpoint was last updated.
allow_messages: Option<AllowMessages>Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.
endpoint_state: Option<EndpointState>A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values:
-
ACTIVE: TheAppInstanceUserEndpointis active and able to receive messages. WhenACTIVE, theEndpointStatusReasonremains empty. -
INACTIVE: TheAppInstanceUserEndpointis inactive and can't receive message. WhenINACTIVE, the corresponding reason will be conveyed throughEndpointStatusReason. -
INVALID_DEVICE_TOKENindicates that anAppInstanceUserEndpointisINACTIVEdue to invalid device token -
INVALID_PINPOINT_ARNindicates that anAppInstanceUserEndpointisINACTIVEdue to an invalid pinpoint ARN that was input through theResourceArnfield.
Implementations§
source§impl AppInstanceUserEndpoint
impl AppInstanceUserEndpoint
sourcepub fn app_instance_user_arn(&self) -> Option<&str>
pub fn app_instance_user_arn(&self) -> Option<&str>
The ARN of the AppInstanceUser.
sourcepub fn endpoint_id(&self) -> Option<&str>
pub fn endpoint_id(&self) -> Option<&str>
The unique identifier of the AppInstanceUserEndpoint.
sourcepub fn type(&self) -> Option<&AppInstanceUserEndpointType>
pub fn type(&self) -> Option<&AppInstanceUserEndpointType>
The type of the AppInstanceUserEndpoint.
sourcepub fn resource_arn(&self) -> Option<&str>
pub fn resource_arn(&self) -> Option<&str>
The ARN of the resource to which the endpoint belongs.
sourcepub fn endpoint_attributes(&self) -> Option<&EndpointAttributes>
pub fn endpoint_attributes(&self) -> Option<&EndpointAttributes>
The attributes of an Endpoint.
sourcepub fn created_timestamp(&self) -> Option<&DateTime>
pub fn created_timestamp(&self) -> Option<&DateTime>
The time at which an AppInstanceUserEndpoint was created.
sourcepub fn last_updated_timestamp(&self) -> Option<&DateTime>
pub fn last_updated_timestamp(&self) -> Option<&DateTime>
The time at which an AppInstanceUserEndpoint was last updated.
sourcepub fn allow_messages(&self) -> Option<&AllowMessages>
pub fn allow_messages(&self) -> Option<&AllowMessages>
Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.
sourcepub fn endpoint_state(&self) -> Option<&EndpointState>
pub fn endpoint_state(&self) -> Option<&EndpointState>
A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values:
-
ACTIVE: TheAppInstanceUserEndpointis active and able to receive messages. WhenACTIVE, theEndpointStatusReasonremains empty. -
INACTIVE: TheAppInstanceUserEndpointis inactive and can't receive message. WhenINACTIVE, the corresponding reason will be conveyed throughEndpointStatusReason. -
INVALID_DEVICE_TOKENindicates that anAppInstanceUserEndpointisINACTIVEdue to invalid device token -
INVALID_PINPOINT_ARNindicates that anAppInstanceUserEndpointisINACTIVEdue to an invalid pinpoint ARN that was input through theResourceArnfield.
source§impl AppInstanceUserEndpoint
impl AppInstanceUserEndpoint
sourcepub fn builder() -> AppInstanceUserEndpointBuilder
pub fn builder() -> AppInstanceUserEndpointBuilder
Creates a new builder-style object to manufacture AppInstanceUserEndpoint.
Trait Implementations§
source§impl Clone for AppInstanceUserEndpoint
impl Clone for AppInstanceUserEndpoint
source§fn clone(&self) -> AppInstanceUserEndpoint
fn clone(&self) -> AppInstanceUserEndpoint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AppInstanceUserEndpoint
impl Debug for AppInstanceUserEndpoint
source§impl PartialEq for AppInstanceUserEndpoint
impl PartialEq for AppInstanceUserEndpoint
source§fn eq(&self, other: &AppInstanceUserEndpoint) -> bool
fn eq(&self, other: &AppInstanceUserEndpoint) -> bool
self and other values to be equal, and is used
by ==.