/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the chime-sdk-identity-2021-04-20.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.ChimeSDKIdentity.Model
{
///
/// 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.
///
public partial class AppInstanceUserEndpoint
{
private AllowMessages _allowMessages;
private string _appInstanceUserArn;
private DateTime? _createdTimestamp;
private EndpointAttributes _endpointAttributes;
private string _endpointId;
private EndpointState _endpointState;
private DateTime? _lastUpdatedTimestamp;
private string _name;
private string _resourceArn;
private AppInstanceUserEndpointType _type;
///
/// Gets and sets the property 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.
///
///
public AllowMessages AllowMessages
{
get { return this._allowMessages; }
set { this._allowMessages = value; }
}
// Check to see if AllowMessages property is set
internal bool IsSetAllowMessages()
{
return this._allowMessages != null;
}
///
/// Gets and sets the property AppInstanceUserArn.
///
/// The ARN of the AppInstanceUser
.
///
///
[AWSProperty(Min=5, Max=1600)]
public string AppInstanceUserArn
{
get { return this._appInstanceUserArn; }
set { this._appInstanceUserArn = value; }
}
// Check to see if AppInstanceUserArn property is set
internal bool IsSetAppInstanceUserArn()
{
return this._appInstanceUserArn != null;
}
///
/// Gets and sets the property CreatedTimestamp.
///
/// The time at which an AppInstanceUserEndpoint
was created.
///
///
public DateTime CreatedTimestamp
{
get { return this._createdTimestamp.GetValueOrDefault(); }
set { this._createdTimestamp = value; }
}
// Check to see if CreatedTimestamp property is set
internal bool IsSetCreatedTimestamp()
{
return this._createdTimestamp.HasValue;
}
///
/// Gets and sets the property EndpointAttributes.
///
/// The attributes of an Endpoint
.
///
///
public EndpointAttributes EndpointAttributes
{
get { return this._endpointAttributes; }
set { this._endpointAttributes = value; }
}
// Check to see if EndpointAttributes property is set
internal bool IsSetEndpointAttributes()
{
return this._endpointAttributes != null;
}
///
/// Gets and sets the property EndpointId.
///
/// The unique identifier of the AppInstanceUserEndpoint
.
///
///
[AWSProperty(Min=0, Max=64)]
public string EndpointId
{
get { return this._endpointId; }
set { this._endpointId = value; }
}
// Check to see if EndpointId property is set
internal bool IsSetEndpointId()
{
return this._endpointId != null;
}
///
/// Gets and sets the property 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.
///
///
///
public EndpointState EndpointState
{
get { return this._endpointState; }
set { this._endpointState = value; }
}
// Check to see if EndpointState property is set
internal bool IsSetEndpointState()
{
return this._endpointState != null;
}
///
/// Gets and sets the property LastUpdatedTimestamp.
///
/// The time at which an AppInstanceUserEndpoint
was last updated.
///
///
public DateTime LastUpdatedTimestamp
{
get { return this._lastUpdatedTimestamp.GetValueOrDefault(); }
set { this._lastUpdatedTimestamp = value; }
}
// Check to see if LastUpdatedTimestamp property is set
internal bool IsSetLastUpdatedTimestamp()
{
return this._lastUpdatedTimestamp.HasValue;
}
///
/// Gets and sets the property Name.
///
/// The name of the AppInstanceUserEndpoint
.
///
///
[AWSProperty(Sensitive=true, Min=0, Max=1600)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property ResourceArn.
///
/// The ARN of the resource to which the endpoint belongs.
///
///
[AWSProperty(Min=5, Max=1600)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
///
/// Gets and sets the property Type.
///
/// The type of the AppInstanceUserEndpoint
.
///
///
public AppInstanceUserEndpointType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}