/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.chimesdkidentity.model; import java.io.Serializable; /** *
* 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.
*
* The ARN of the AppInstanceUser
.
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*/
private String appInstanceUserArn;
/**
*
* The unique identifier of the AppInstanceUserEndpoint
.
*
* Constraints:
* Length: 0 - 64
* Pattern: .*
*/
private String endpointId;
/**
*
* The name of the AppInstanceUserEndpoint
.
*
* Constraints:
* Length: 0 - 1600
* Pattern: .*
*/
private String name;
/**
*
* The type of the AppInstanceUserEndpoint
.
*
* Constraints:
* Allowed Values: APNS, APNS_SANDBOX, GCM
*/
private String type;
/**
*
* The ARN of the resource to which the endpoint belongs. *
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*/
private String resourceArn;
/**
*
* The attributes of an Endpoint
.
*
* The time at which an AppInstanceUserEndpoint
was created.
*
* The time at which an AppInstanceUserEndpoint
was last
* updated.
*
* 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.
*
* Constraints:
* Allowed Values: ALL, NONE
*/
private String allowMessages;
/**
*
* 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.
*
* The ARN of the AppInstanceUser
.
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @return
* The ARN of the AppInstanceUser
.
*
* The ARN of the AppInstanceUser
.
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @param appInstanceUserArn
* The ARN of the AppInstanceUser
.
*
* The ARN of the AppInstanceUser
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @param appInstanceUserArn
* The ARN of the AppInstanceUser
.
*
* The unique identifier of the AppInstanceUserEndpoint
.
*
* Constraints:
* Length: 0 - 64
* Pattern: .*
*
* @return
* The unique identifier of the AppInstanceUserEndpoint
* .
*
* The unique identifier of the AppInstanceUserEndpoint
.
*
* Constraints:
* Length: 0 - 64
* Pattern: .*
*
* @param endpointId
* The unique identifier of the
* AppInstanceUserEndpoint
.
*
* The unique identifier of the AppInstanceUserEndpoint
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 0 - 64
* Pattern: .*
*
* @param endpointId
* The unique identifier of the
* AppInstanceUserEndpoint
.
*
* The name of the AppInstanceUserEndpoint
.
*
* Constraints:
* Length: 0 - 1600
* Pattern: .*
*
* @return
* The name of the AppInstanceUserEndpoint
.
*
* The name of the AppInstanceUserEndpoint
.
*
* Constraints:
* Length: 0 - 1600
* Pattern: .*
*
* @param name
* The name of the AppInstanceUserEndpoint
.
*
* The name of the AppInstanceUserEndpoint
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 0 - 1600
* Pattern: .*
*
* @param name
* The name of the AppInstanceUserEndpoint
.
*
* The type of the AppInstanceUserEndpoint
.
*
* Constraints:
* Allowed Values: APNS, APNS_SANDBOX, GCM
*
* @return
* The type of the AppInstanceUserEndpoint
.
*
* The type of the AppInstanceUserEndpoint
.
*
* Constraints:
* Allowed Values: APNS, APNS_SANDBOX, GCM
*
* @param type
* The type of the AppInstanceUserEndpoint
.
*
* The type of the AppInstanceUserEndpoint
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: APNS, APNS_SANDBOX, GCM
*
* @param type
* The type of the AppInstanceUserEndpoint
.
*
* The type of the AppInstanceUserEndpoint
.
*
* Constraints:
* Allowed Values: APNS, APNS_SANDBOX, GCM
*
* @param type
* The type of the AppInstanceUserEndpoint
.
*
* The type of the AppInstanceUserEndpoint
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: APNS, APNS_SANDBOX, GCM
*
* @param type
* The type of the AppInstanceUserEndpoint
.
*
* The ARN of the resource to which the endpoint belongs. *
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @return
* The ARN of the resource to which the endpoint belongs. *
*/ public String getResourceArn() { return resourceArn; } /** ** The ARN of the resource to which the endpoint belongs. *
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @param resourceArn
* The ARN of the resource to which the endpoint belongs. *
*/ public void setResourceArn(String resourceArn) { this.resourceArn = resourceArn; } /** ** The ARN of the resource to which the endpoint belongs. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @param resourceArn
* The ARN of the resource to which the endpoint belongs. *
* @return A reference to this updated object so that method calls can be * chained together. */ public AppInstanceUserEndpoint withResourceArn(String resourceArn) { this.resourceArn = resourceArn; return this; } /** *
* The attributes of an Endpoint
.
*
* The attributes of an Endpoint
.
*
* The attributes of an Endpoint
.
*
* The attributes of an Endpoint
.
*
* The attributes of an Endpoint
.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param endpointAttributes
* The attributes of an Endpoint
.
*
* The time at which an AppInstanceUserEndpoint
was created.
*
* The time at which an AppInstanceUserEndpoint
was
* created.
*
* The time at which an AppInstanceUserEndpoint
was created.
*
* The time at which an AppInstanceUserEndpoint
was
* created.
*
* The time at which an AppInstanceUserEndpoint
was created.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param createdTimestamp
* The time at which an AppInstanceUserEndpoint
was
* created.
*
* The time at which an AppInstanceUserEndpoint
was last
* updated.
*
* The time at which an AppInstanceUserEndpoint
was
* last updated.
*
* The time at which an AppInstanceUserEndpoint
was last
* updated.
*
* The time at which an AppInstanceUserEndpoint
was
* last updated.
*
* The time at which an AppInstanceUserEndpoint
was last
* updated.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param lastUpdatedTimestamp
* The time at which an AppInstanceUserEndpoint
was
* last updated.
*
* 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.
*
* Constraints:
* Allowed Values: ALL, NONE
*
* @return
* 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.
*
* 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.
*
* Constraints:
* Allowed Values: ALL, NONE
*
* @param 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: ALL, NONE
*
* @param 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.
*
* 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.
*
* Constraints:
* Allowed Values: ALL, NONE
*
* @param 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: ALL, NONE
*
* @param 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param endpointState
* 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.
*