/* * 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 { /// /// Container for the parameters to the PutEmailIdentityFeedbackAttributes operation. /// Used to enable or disable feedback forwarding for an identity. This setting determines /// what happens when an identity is used to send an email that results in a bounce or /// complaint event. /// /// /// /// If the value is true, you receive email notifications when bounce or /// complaint events occur. These notifications are sent to the address that you specified /// in the Return-Path header of the original email. /// /// /// /// You're required to have a method of tracking bounces and complaints. If you haven't /// set up another mechanism for receiving bounce or complaint notifications (for example, /// by setting up an event destination), you receive an email notification when these /// events occur (even if this setting is disabled). /// /// public partial class PutEmailIdentityFeedbackAttributesRequest : AmazonSimpleEmailServiceV2Request { private bool? _emailForwardingEnabled; private string _emailIdentity; /// /// Gets and sets the property EmailForwardingEnabled. /// /// Sets the feedback forwarding configuration for the identity. /// /// /// /// If the value is true, you receive email notifications when bounce or /// complaint events occur. These notifications are sent to the address that you specified /// in the Return-Path header of the original email. /// /// /// /// You're required to have a method of tracking bounces and complaints. If you haven't /// set up another mechanism for receiving bounce or complaint notifications (for example, /// by setting up an event destination), you receive an email notification when these /// events occur (even if this setting is disabled). /// /// public bool EmailForwardingEnabled { get { return this._emailForwardingEnabled.GetValueOrDefault(); } set { this._emailForwardingEnabled = value; } } // Check to see if EmailForwardingEnabled property is set internal bool IsSetEmailForwardingEnabled() { return this._emailForwardingEnabled.HasValue; } /// /// Gets and sets the property EmailIdentity. /// /// The email identity. /// /// [AWSProperty(Required=true, Min=1)] public string EmailIdentity { get { return this._emailIdentity; } set { this._emailIdentity = value; } } // Check to see if EmailIdentity property is set internal bool IsSetEmailIdentity() { return this._emailIdentity != null; } } }