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/core/utils/memory/stl/AWSString.h> 9 #include <aws/email/model/ResponseMetadata.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 template<typename RESULT_TYPE> 15 class AmazonWebServiceResult; 16 17 namespace Utils 18 { 19 namespace Xml 20 { 21 class XmlDocument; 22 } // namespace Xml 23 } // namespace Utils 24 namespace SES 25 { 26 namespace Model 27 { 28 /** 29 * <p>Returns a TXT record that you must publish to the DNS server of your domain 30 * to complete domain verification with Amazon SES.</p><p><h3>See Also:</h3> <a 31 * href="http://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/VerifyDomainIdentityResponse">AWS 32 * API Reference</a></p> 33 */ 34 class AWS_SES_API VerifyDomainIdentityResult 35 { 36 public: 37 VerifyDomainIdentityResult(); 38 VerifyDomainIdentityResult(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result); 39 VerifyDomainIdentityResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result); 40 41 42 /** 43 * <p>A TXT record that you must place in the DNS settings of the domain to 44 * complete domain verification with Amazon SES.</p> <p>As Amazon SES searches for 45 * the TXT record, the domain's verification status is "Pending". When Amazon SES 46 * detects the record, the domain's verification status changes to "Success". If 47 * Amazon SES is unable to detect the record within 72 hours, the domain's 48 * verification status changes to "Failed." In that case, if you still want to 49 * verify the domain, you must restart the verification process from the 50 * beginning.</p> 51 */ GetVerificationToken()52 inline const Aws::String& GetVerificationToken() const{ return m_verificationToken; } 53 54 /** 55 * <p>A TXT record that you must place in the DNS settings of the domain to 56 * complete domain verification with Amazon SES.</p> <p>As Amazon SES searches for 57 * the TXT record, the domain's verification status is "Pending". When Amazon SES 58 * detects the record, the domain's verification status changes to "Success". If 59 * Amazon SES is unable to detect the record within 72 hours, the domain's 60 * verification status changes to "Failed." In that case, if you still want to 61 * verify the domain, you must restart the verification process from the 62 * beginning.</p> 63 */ SetVerificationToken(const Aws::String & value)64 inline void SetVerificationToken(const Aws::String& value) { m_verificationToken = value; } 65 66 /** 67 * <p>A TXT record that you must place in the DNS settings of the domain to 68 * complete domain verification with Amazon SES.</p> <p>As Amazon SES searches for 69 * the TXT record, the domain's verification status is "Pending". When Amazon SES 70 * detects the record, the domain's verification status changes to "Success". If 71 * Amazon SES is unable to detect the record within 72 hours, the domain's 72 * verification status changes to "Failed." In that case, if you still want to 73 * verify the domain, you must restart the verification process from the 74 * beginning.</p> 75 */ SetVerificationToken(Aws::String && value)76 inline void SetVerificationToken(Aws::String&& value) { m_verificationToken = std::move(value); } 77 78 /** 79 * <p>A TXT record that you must place in the DNS settings of the domain to 80 * complete domain verification with Amazon SES.</p> <p>As Amazon SES searches for 81 * the TXT record, the domain's verification status is "Pending". When Amazon SES 82 * detects the record, the domain's verification status changes to "Success". If 83 * Amazon SES is unable to detect the record within 72 hours, the domain's 84 * verification status changes to "Failed." In that case, if you still want to 85 * verify the domain, you must restart the verification process from the 86 * beginning.</p> 87 */ SetVerificationToken(const char * value)88 inline void SetVerificationToken(const char* value) { m_verificationToken.assign(value); } 89 90 /** 91 * <p>A TXT record that you must place in the DNS settings of the domain to 92 * complete domain verification with Amazon SES.</p> <p>As Amazon SES searches for 93 * the TXT record, the domain's verification status is "Pending". When Amazon SES 94 * detects the record, the domain's verification status changes to "Success". If 95 * Amazon SES is unable to detect the record within 72 hours, the domain's 96 * verification status changes to "Failed." In that case, if you still want to 97 * verify the domain, you must restart the verification process from the 98 * beginning.</p> 99 */ WithVerificationToken(const Aws::String & value)100 inline VerifyDomainIdentityResult& WithVerificationToken(const Aws::String& value) { SetVerificationToken(value); return *this;} 101 102 /** 103 * <p>A TXT record that you must place in the DNS settings of the domain to 104 * complete domain verification with Amazon SES.</p> <p>As Amazon SES searches for 105 * the TXT record, the domain's verification status is "Pending". When Amazon SES 106 * detects the record, the domain's verification status changes to "Success". If 107 * Amazon SES is unable to detect the record within 72 hours, the domain's 108 * verification status changes to "Failed." In that case, if you still want to 109 * verify the domain, you must restart the verification process from the 110 * beginning.</p> 111 */ WithVerificationToken(Aws::String && value)112 inline VerifyDomainIdentityResult& WithVerificationToken(Aws::String&& value) { SetVerificationToken(std::move(value)); return *this;} 113 114 /** 115 * <p>A TXT record that you must place in the DNS settings of the domain to 116 * complete domain verification with Amazon SES.</p> <p>As Amazon SES searches for 117 * the TXT record, the domain's verification status is "Pending". When Amazon SES 118 * detects the record, the domain's verification status changes to "Success". If 119 * Amazon SES is unable to detect the record within 72 hours, the domain's 120 * verification status changes to "Failed." In that case, if you still want to 121 * verify the domain, you must restart the verification process from the 122 * beginning.</p> 123 */ WithVerificationToken(const char * value)124 inline VerifyDomainIdentityResult& WithVerificationToken(const char* value) { SetVerificationToken(value); return *this;} 125 126 127 GetResponseMetadata()128 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } 129 130 SetResponseMetadata(const ResponseMetadata & value)131 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } 132 133 SetResponseMetadata(ResponseMetadata && value)134 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } 135 136 WithResponseMetadata(const ResponseMetadata & value)137 inline VerifyDomainIdentityResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} 138 139 WithResponseMetadata(ResponseMetadata && value)140 inline VerifyDomainIdentityResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} 141 142 private: 143 144 Aws::String m_verificationToken; 145 146 ResponseMetadata m_responseMetadata; 147 }; 148 149 } // namespace Model 150 } // namespace SES 151 } // namespace Aws 152