1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/email/SES_EXPORTS.h> 8 #include <aws/email/SESRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace SES 15 { 16 namespace Model 17 { 18 19 /** 20 * <p>Represents a request to enable or disable Amazon SES Easy DKIM signing for an 21 * identity. For more information about setting up Easy DKIM, see the <a 22 * href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html">Amazon 23 * SES Developer Guide</a>.</p><p><h3>See Also:</h3> <a 24 * href="http://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetIdentityDkimEnabledRequest">AWS 25 * API Reference</a></p> 26 */ 27 class AWS_SES_API SetIdentityDkimEnabledRequest : public SESRequest 28 { 29 public: 30 SetIdentityDkimEnabledRequest(); 31 32 // Service request name is the Operation name which will send this request out, 33 // each operation should has unique request name, so that we can get operation's name from this request. 34 // Note: this is not true for response, multiple operations may have the same response name, 35 // so we can not get operation's name from response. GetServiceRequestName()36 inline virtual const char* GetServiceRequestName() const override { return "SetIdentityDkimEnabled"; } 37 38 Aws::String SerializePayload() const override; 39 40 protected: 41 void DumpBodyToUrl(Aws::Http::URI& uri ) const override; 42 43 public: 44 45 /** 46 * <p>The identity for which DKIM signing should be enabled or disabled.</p> 47 */ GetIdentity()48 inline const Aws::String& GetIdentity() const{ return m_identity; } 49 50 /** 51 * <p>The identity for which DKIM signing should be enabled or disabled.</p> 52 */ IdentityHasBeenSet()53 inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; } 54 55 /** 56 * <p>The identity for which DKIM signing should be enabled or disabled.</p> 57 */ SetIdentity(const Aws::String & value)58 inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; } 59 60 /** 61 * <p>The identity for which DKIM signing should be enabled or disabled.</p> 62 */ SetIdentity(Aws::String && value)63 inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = std::move(value); } 64 65 /** 66 * <p>The identity for which DKIM signing should be enabled or disabled.</p> 67 */ SetIdentity(const char * value)68 inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); } 69 70 /** 71 * <p>The identity for which DKIM signing should be enabled or disabled.</p> 72 */ WithIdentity(const Aws::String & value)73 inline SetIdentityDkimEnabledRequest& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;} 74 75 /** 76 * <p>The identity for which DKIM signing should be enabled or disabled.</p> 77 */ WithIdentity(Aws::String && value)78 inline SetIdentityDkimEnabledRequest& WithIdentity(Aws::String&& value) { SetIdentity(std::move(value)); return *this;} 79 80 /** 81 * <p>The identity for which DKIM signing should be enabled or disabled.</p> 82 */ WithIdentity(const char * value)83 inline SetIdentityDkimEnabledRequest& WithIdentity(const char* value) { SetIdentity(value); return *this;} 84 85 86 /** 87 * <p>Sets whether DKIM signing is enabled for an identity. Set to 88 * <code>true</code> to enable DKIM signing for this identity; <code>false</code> 89 * to disable it. </p> 90 */ GetDkimEnabled()91 inline bool GetDkimEnabled() const{ return m_dkimEnabled; } 92 93 /** 94 * <p>Sets whether DKIM signing is enabled for an identity. Set to 95 * <code>true</code> to enable DKIM signing for this identity; <code>false</code> 96 * to disable it. </p> 97 */ DkimEnabledHasBeenSet()98 inline bool DkimEnabledHasBeenSet() const { return m_dkimEnabledHasBeenSet; } 99 100 /** 101 * <p>Sets whether DKIM signing is enabled for an identity. Set to 102 * <code>true</code> to enable DKIM signing for this identity; <code>false</code> 103 * to disable it. </p> 104 */ SetDkimEnabled(bool value)105 inline void SetDkimEnabled(bool value) { m_dkimEnabledHasBeenSet = true; m_dkimEnabled = value; } 106 107 /** 108 * <p>Sets whether DKIM signing is enabled for an identity. Set to 109 * <code>true</code> to enable DKIM signing for this identity; <code>false</code> 110 * to disable it. </p> 111 */ WithDkimEnabled(bool value)112 inline SetIdentityDkimEnabledRequest& WithDkimEnabled(bool value) { SetDkimEnabled(value); return *this;} 113 114 private: 115 116 Aws::String m_identity; 117 bool m_identityHasBeenSet; 118 119 bool m_dkimEnabled; 120 bool m_dkimEnabledHasBeenSet; 121 }; 122 123 } // namespace Model 124 } // namespace SES 125 } // namespace Aws 126