/* * 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 sesv2-2019-09-27.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.SimpleEmailV2.Model { /// /// An object that contains the deliverability data for a specific campaign. This data /// is available for a campaign only if the campaign sent email by using a domain that /// the Deliverability dashboard is enabled for (PutDeliverabilityDashboardOption /// operation). /// public partial class DomainDeliverabilityCampaign { private string _campaignId; private double? _deleteRate; private List _esps = new List(); private DateTime? _firstSeenDateTime; private string _fromAddress; private string _imageUrl; private long? _inboxCount; private DateTime? _lastSeenDateTime; private long? _projectedVolume; private double? _readDeleteRate; private double? _readRate; private List _sendingIps = new List(); private long? _spamCount; private string _subject; /// /// Gets and sets the property CampaignId. /// /// The unique identifier for the campaign. The Deliverability dashboard automatically /// generates and assigns this identifier to a campaign. /// /// public string CampaignId { get { return this._campaignId; } set { this._campaignId = value; } } // Check to see if CampaignId property is set internal bool IsSetCampaignId() { return this._campaignId != null; } /// /// Gets and sets the property DeleteRate. /// /// The percentage of email messages that were deleted by recipients, without being opened /// first. Due to technical limitations, this value only includes recipients who opened /// the message by using an email client that supports images. /// /// public double DeleteRate { get { return this._deleteRate.GetValueOrDefault(); } set { this._deleteRate = value; } } // Check to see if DeleteRate property is set internal bool IsSetDeleteRate() { return this._deleteRate.HasValue; } /// /// Gets and sets the property Esps. /// /// The major email providers who handled the email message. /// /// public List Esps { get { return this._esps; } set { this._esps = value; } } // Check to see if Esps property is set internal bool IsSetEsps() { return this._esps != null && this._esps.Count > 0; } /// /// Gets and sets the property FirstSeenDateTime. /// /// The first time when the email message was delivered to any recipient's inbox. This /// value can help you determine how long it took for a campaign to deliver an email message. /// /// public DateTime FirstSeenDateTime { get { return this._firstSeenDateTime.GetValueOrDefault(); } set { this._firstSeenDateTime = value; } } // Check to see if FirstSeenDateTime property is set internal bool IsSetFirstSeenDateTime() { return this._firstSeenDateTime.HasValue; } /// /// Gets and sets the property FromAddress. /// /// The verified email address that the email message was sent from. /// /// [AWSProperty(Min=1)] 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 ImageUrl. /// /// The URL of an image that contains a snapshot of the email message that was sent. /// /// public string ImageUrl { get { return this._imageUrl; } set { this._imageUrl = value; } } // Check to see if ImageUrl property is set internal bool IsSetImageUrl() { return this._imageUrl != null; } /// /// Gets and sets the property InboxCount. /// /// The number of email messages that were delivered to recipients’ inboxes. /// /// public long InboxCount { get { return this._inboxCount.GetValueOrDefault(); } set { this._inboxCount = value; } } // Check to see if InboxCount property is set internal bool IsSetInboxCount() { return this._inboxCount.HasValue; } /// /// Gets and sets the property LastSeenDateTime. /// /// The last time when the email message was delivered to any recipient's inbox. This /// value can help you determine how long it took for a campaign to deliver an email message. /// /// public DateTime LastSeenDateTime { get { return this._lastSeenDateTime.GetValueOrDefault(); } set { this._lastSeenDateTime = value; } } // Check to see if LastSeenDateTime property is set internal bool IsSetLastSeenDateTime() { return this._lastSeenDateTime.HasValue; } /// /// Gets and sets the property ProjectedVolume. /// /// The projected number of recipients that the email message was sent to. /// /// public long ProjectedVolume { get { return this._projectedVolume.GetValueOrDefault(); } set { this._projectedVolume = value; } } // Check to see if ProjectedVolume property is set internal bool IsSetProjectedVolume() { return this._projectedVolume.HasValue; } /// /// Gets and sets the property ReadDeleteRate. /// /// The percentage of email messages that were opened and then deleted by recipients. /// Due to technical limitations, this value only includes recipients who opened the message /// by using an email client that supports images. /// /// public double ReadDeleteRate { get { return this._readDeleteRate.GetValueOrDefault(); } set { this._readDeleteRate = value; } } // Check to see if ReadDeleteRate property is set internal bool IsSetReadDeleteRate() { return this._readDeleteRate.HasValue; } /// /// Gets and sets the property ReadRate. /// /// The percentage of email messages that were opened by recipients. Due to technical /// limitations, this value only includes recipients who opened the message by using an /// email client that supports images. /// /// public double ReadRate { get { return this._readRate.GetValueOrDefault(); } set { this._readRate = value; } } // Check to see if ReadRate property is set internal bool IsSetReadRate() { return this._readRate.HasValue; } /// /// Gets and sets the property SendingIps. /// /// The IP addresses that were used to send the email message. /// /// public List SendingIps { get { return this._sendingIps; } set { this._sendingIps = value; } } // Check to see if SendingIps property is set internal bool IsSetSendingIps() { return this._sendingIps != null && this._sendingIps.Count > 0; } /// /// Gets and sets the property SpamCount. /// /// The number of email messages that were delivered to recipients' spam or junk mail /// folders. /// /// public long SpamCount { get { return this._spamCount.GetValueOrDefault(); } set { this._spamCount = value; } } // Check to see if SpamCount property is set internal bool IsSetSpamCount() { return this._spamCount.HasValue; } /// /// Gets and sets the property Subject. /// /// The subject line, or title, of the email message. /// /// 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; } } }