/* * 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 pinpoint-2016-12-01.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.Pinpoint.Model { /// /// Provides information about the delivery status and results of sending a message directly /// to an endpoint. /// public partial class EndpointMessageResult { private string _address; private DeliveryStatus _deliveryStatus; private string _messageId; private int? _statusCode; private string _statusMessage; private string _updatedToken; /// /// Gets and sets the property Address. /// /// The endpoint address that the message was delivered to. /// /// public string Address { get { return this._address; } set { this._address = value; } } // Check to see if Address property is set internal bool IsSetAddress() { return this._address != null; } /// /// Gets and sets the property DeliveryStatus. /// /// The delivery status of the message. Possible values are: /// /// /// [AWSProperty(Required=true)] public DeliveryStatus DeliveryStatus { get { return this._deliveryStatus; } set { this._deliveryStatus = value; } } // Check to see if DeliveryStatus property is set internal bool IsSetDeliveryStatus() { return this._deliveryStatus != null; } /// /// Gets and sets the property MessageId. /// /// The unique identifier for the message that was sent. /// /// public string MessageId { get { return this._messageId; } set { this._messageId = value; } } // Check to see if MessageId property is set internal bool IsSetMessageId() { return this._messageId != null; } /// /// Gets and sets the property StatusCode. /// /// The downstream service status code for delivering the message. /// /// [AWSProperty(Required=true)] public int StatusCode { get { return this._statusCode.GetValueOrDefault(); } set { this._statusCode = value; } } // Check to see if StatusCode property is set internal bool IsSetStatusCode() { return this._statusCode.HasValue; } /// /// Gets and sets the property StatusMessage. /// /// The status message for delivering the message. /// /// public string StatusMessage { get { return this._statusMessage; } set { this._statusMessage = value; } } // Check to see if StatusMessage property is set internal bool IsSetStatusMessage() { return this._statusMessage != null; } /// /// Gets and sets the property UpdatedToken. /// /// For push notifications that are sent through the GCM channel, specifies whether the /// endpoint's device registration token was updated as part of delivering the message. /// /// public string UpdatedToken { get { return this._updatedToken; } set { this._updatedToken = value; } } // Check to see if UpdatedToken property is set internal bool IsSetUpdatedToken() { return this._updatedToken != null; } } }