/* * 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 { /// /// Specifies the default settings for a one-time SMS message that's sent directly to /// an endpoint. /// public partial class SMSMessage { private string _body; private string _entityId; private string _keyword; private string _mediaUrl; private MessageType _messageType; private string _originationNumber; private string _senderId; private Dictionary> _substitutions = new Dictionary>(); private string _templateId; /// /// Gets and sets the property Body. /// /// The body of the SMS message. /// /// public string Body { get { return this._body; } set { this._body = value; } } // Check to see if Body property is set internal bool IsSetBody() { return this._body != null; } /// /// Gets and sets the property EntityId. /// /// The entity ID or Principal Entity (PE) id received from the regulatory body for sending /// SMS in your country. /// /// public string EntityId { get { return this._entityId; } set { this._entityId = value; } } // Check to see if EntityId property is set internal bool IsSetEntityId() { return this._entityId != null; } /// /// Gets and sets the property Keyword. /// /// The SMS program name that you provided to AWS Support when you requested your dedicated /// number. /// /// public string Keyword { get { return this._keyword; } set { this._keyword = value; } } // Check to see if Keyword property is set internal bool IsSetKeyword() { return this._keyword != null; } /// /// Gets and sets the property MediaUrl. /// /// This field is reserved for future use. /// /// public string MediaUrl { get { return this._mediaUrl; } set { this._mediaUrl = value; } } // Check to see if MediaUrl property is set internal bool IsSetMediaUrl() { return this._mediaUrl != null; } /// /// Gets and sets the property MessageType. /// /// The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical /// or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that /// aren't critical or time-sensitive, such as marketing messages). /// /// public MessageType MessageType { get { return this._messageType; } set { this._messageType = value; } } // Check to see if MessageType property is set internal bool IsSetMessageType() { return this._messageType != null; } /// /// Gets and sets the property OriginationNumber. /// /// The number to send the SMS message from. This value should be one of the dedicated /// long or short codes that's assigned to your AWS account. If you don't specify a long /// or short code, Amazon Pinpoint assigns a random long code to the SMS message and sends /// the message from that code. /// /// public string OriginationNumber { get { return this._originationNumber; } set { this._originationNumber = value; } } // Check to see if OriginationNumber property is set internal bool IsSetOriginationNumber() { return this._originationNumber != null; } /// /// Gets and sets the property SenderId. /// /// The sender ID to display as the sender of the message on a recipient's device. Support /// for sender IDs varies by country or region. /// /// public string SenderId { get { return this._senderId; } set { this._senderId = value; } } // Check to see if SenderId property is set internal bool IsSetSenderId() { return this._senderId != null; } /// /// Gets and sets the property Substitutions. /// /// The message variables to use in the SMS message. You can override the default variables /// with individual address variables. /// /// public Dictionary> Substitutions { get { return this._substitutions; } set { this._substitutions = value; } } // Check to see if Substitutions property is set internal bool IsSetSubstitutions() { return this._substitutions != null && this._substitutions.Count > 0; } /// /// Gets and sets the property TemplateId. /// /// The template ID received from the regulatory body for sending SMS in your country. /// /// public string TemplateId { get { return this._templateId; } set { this._templateId = value; } } // Check to see if TemplateId property is set internal bool IsSetTemplateId() { return this._templateId != null; } } }