/* * 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 content and settings for a message template that can /// be used in messages that are sent through the email channel. /// public partial class EmailTemplateResponse { private string _arn; private string _creationDate; private string _defaultSubstitutions; private string _htmlPart; private string _lastModifiedDate; private string _recommenderId; private string _subject; private Dictionary _tags = new Dictionary(); private string _templateDescription; private string _templateName; private TemplateType _templateType; private string _textPart; private string _version; /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of the message template. /// /// public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property CreationDate. /// /// The date, in ISO 8601 format, when the message template was created. /// /// [AWSProperty(Required=true)] public string CreationDate { get { return this._creationDate; } set { this._creationDate = value; } } // Check to see if CreationDate property is set internal bool IsSetCreationDate() { return this._creationDate != null; } /// /// Gets and sets the property DefaultSubstitutions. /// /// The JSON object that specifies the default values that are used for message variables /// in the message template. This object is a set of key-value pairs. Each key defines /// a message variable in the template. The corresponding value defines the default value /// for that variable. /// /// public string DefaultSubstitutions { get { return this._defaultSubstitutions; } set { this._defaultSubstitutions = value; } } // Check to see if DefaultSubstitutions property is set internal bool IsSetDefaultSubstitutions() { return this._defaultSubstitutions != null; } /// /// Gets and sets the property HtmlPart. /// /// The message body, in HTML format, that's used in email messages that are based on /// the message template. /// /// public string HtmlPart { get { return this._htmlPart; } set { this._htmlPart = value; } } // Check to see if HtmlPart property is set internal bool IsSetHtmlPart() { return this._htmlPart != null; } /// /// Gets and sets the property LastModifiedDate. /// /// The date, in ISO 8601 format, when the message template was last modified. /// /// [AWSProperty(Required=true)] public string LastModifiedDate { get { return this._lastModifiedDate; } set { this._lastModifiedDate = value; } } // Check to see if LastModifiedDate property is set internal bool IsSetLastModifiedDate() { return this._lastModifiedDate != null; } /// /// Gets and sets the property RecommenderId. /// /// The unique identifier for the recommender model that's used by the message template. /// /// public string RecommenderId { get { return this._recommenderId; } set { this._recommenderId = value; } } // Check to see if RecommenderId property is set internal bool IsSetRecommenderId() { return this._recommenderId != null; } /// /// Gets and sets the property Subject. /// /// The subject line, or title, that's used in email messages that are based on the message /// template. /// /// public string Subject { get { return this._subject; } set { this._subject = value; } } // Check to see if Subject property is set internal bool IsSetSubject() { return this._subject != null; } /// /// Gets and sets the property Tags. /// /// A string-to-string map of key-value pairs that identifies the tags that are associated /// with the message template. Each tag consists of a required tag key and an associated /// tag value. /// /// public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property TemplateDescription. /// /// The custom description of the message template. /// /// public string TemplateDescription { get { return this._templateDescription; } set { this._templateDescription = value; } } // Check to see if TemplateDescription property is set internal bool IsSetTemplateDescription() { return this._templateDescription != null; } /// /// Gets and sets the property TemplateName. /// /// The name of the message template. /// /// [AWSProperty(Required=true)] public string TemplateName { get { return this._templateName; } set { this._templateName = value; } } // Check to see if TemplateName property is set internal bool IsSetTemplateName() { return this._templateName != null; } /// /// Gets and sets the property TemplateType. /// /// The type of channel that the message template is designed for. For an email template, /// this value is EMAIL. /// /// [AWSProperty(Required=true)] public TemplateType TemplateType { get { return this._templateType; } set { this._templateType = value; } } // Check to see if TemplateType property is set internal bool IsSetTemplateType() { return this._templateType != null; } /// /// Gets and sets the property TextPart. /// /// The message body, in plain text format, that's used in email messages that are based /// on the message template. /// /// public string TextPart { get { return this._textPart; } set { this._textPart = value; } } // Check to see if TextPart property is set internal bool IsSetTextPart() { return this._textPart != null; } /// /// Gets and sets the property Version. /// /// The unique identifier, as an integer, for the active version of the message template, /// or the version of the template that you specified by using the version parameter in /// your request. /// /// public string Version { get { return this._version; } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version != null; } } }