/*
* 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 status and settings of the email channel for an application.
///
public partial class EmailChannelResponse
{
private string _applicationId;
private string _configurationSet;
private string _creationDate;
private bool? _enabled;
private string _fromAddress;
private bool? _hasCredential;
private string _id;
private string _identity;
private bool? _isArchived;
private string _lastModifiedBy;
private string _lastModifiedDate;
private int? _messagesPerSecond;
private string _platform;
private string _roleArn;
private int? _version;
///
/// Gets and sets the property ApplicationId.
///
/// The unique identifier for the application that the email channel applies to.
///
///
public string ApplicationId
{
get { return this._applicationId; }
set { this._applicationId = value; }
}
// Check to see if ApplicationId property is set
internal bool IsSetApplicationId()
{
return this._applicationId != null;
}
///
/// Gets and sets the property ConfigurationSet.
///
/// The Amazon
/// SES configuration set that's applied to messages that are sent through the channel.
///
///
public string ConfigurationSet
{
get { return this._configurationSet; }
set { this._configurationSet = value; }
}
// Check to see if ConfigurationSet property is set
internal bool IsSetConfigurationSet()
{
return this._configurationSet != null;
}
///
/// Gets and sets the property CreationDate.
///
/// The date and time, in ISO 8601 format, when the email channel was enabled.
///
///
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 Enabled.
///
/// Specifies whether the email channel is enabled for the application.
///
///
public bool Enabled
{
get { return this._enabled.GetValueOrDefault(); }
set { this._enabled = value; }
}
// Check to see if Enabled property is set
internal bool IsSetEnabled()
{
return this._enabled.HasValue;
}
///
/// Gets and sets the property FromAddress.
///
/// The verified email address that email is sent from when you send email through the
/// channel.
///
///
public string FromAddress
{
get { return this._fromAddress; }
set { this._fromAddress = value; }
}
// Check to see if FromAddress property is set
internal bool IsSetFromAddress()
{
return this._fromAddress != null;
}
///
/// Gets and sets the property HasCredential.
///
/// (Not used) This property is retained only for backward compatibility.
///
///
public bool HasCredential
{
get { return this._hasCredential.GetValueOrDefault(); }
set { this._hasCredential = value; }
}
// Check to see if HasCredential property is set
internal bool IsSetHasCredential()
{
return this._hasCredential.HasValue;
}
///
/// Gets and sets the property Id.
///
/// (Deprecated) An identifier for the email channel. This property is retained only for
/// backward compatibility.
///
///
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property Identity.
///
/// The Amazon Resource Name (ARN) of the identity, verified with Amazon Simple Email
/// Service (Amazon SES), that's used when you send email through the channel.
///
///
public string Identity
{
get { return this._identity; }
set { this._identity = value; }
}
// Check to see if Identity property is set
internal bool IsSetIdentity()
{
return this._identity != null;
}
///
/// Gets and sets the property IsArchived.
///
/// Specifies whether the email channel is archived.
///
///
public bool IsArchived
{
get { return this._isArchived.GetValueOrDefault(); }
set { this._isArchived = value; }
}
// Check to see if IsArchived property is set
internal bool IsSetIsArchived()
{
return this._isArchived.HasValue;
}
///
/// Gets and sets the property LastModifiedBy.
///
/// The user who last modified the email channel.
///
///
public string LastModifiedBy
{
get { return this._lastModifiedBy; }
set { this._lastModifiedBy = value; }
}
// Check to see if LastModifiedBy property is set
internal bool IsSetLastModifiedBy()
{
return this._lastModifiedBy != null;
}
///
/// Gets and sets the property LastModifiedDate.
///
/// The date and time, in ISO 8601 format, when the email channel was last modified.
///
///
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 MessagesPerSecond.
///
/// The maximum number of emails that can be sent through the channel each second.
///
///
public int MessagesPerSecond
{
get { return this._messagesPerSecond.GetValueOrDefault(); }
set { this._messagesPerSecond = value; }
}
// Check to see if MessagesPerSecond property is set
internal bool IsSetMessagesPerSecond()
{
return this._messagesPerSecond.HasValue;
}
///
/// Gets and sets the property Platform.
///
/// The type of messaging or notification platform for the channel. For the email channel,
/// this value is EMAIL.
///
///
[AWSProperty(Required=true)]
public string Platform
{
get { return this._platform; }
set { this._platform = value; }
}
// Check to see if Platform property is set
internal bool IsSetPlatform()
{
return this._platform != null;
}
///
/// Gets and sets the property RoleArn.
///
/// The ARN of the AWS Identity and Access Management (IAM) role that Amazon Pinpoint
/// uses to submit email-related event data for the channel.
///
///
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
///
/// Gets and sets the property Version.
///
/// The current version of the email channel.
///
///
public int Version
{
get { return this._version.GetValueOrDefault(); }
set { this._version = value; }
}
// Check to see if Version property is set
internal bool IsSetVersion()
{
return this._version.HasValue;
}
}
}