AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SetIdentityMailFromDomainRequest.h
1
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 <aws/email/model/BehaviorOnMXFailure.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SES
16{
17namespace Model
18{
19
30 {
31 public:
32 AWS_SES_API SetIdentityMailFromDomainRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "SetIdentityMailFromDomain"; }
39
40 AWS_SES_API Aws::String SerializePayload() const override;
41
42 protected:
43 AWS_SES_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44
45 public:
46
48
51 inline const Aws::String& GetIdentity() const { return m_identity; }
52 inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; }
53 template<typename IdentityT = Aws::String>
54 void SetIdentity(IdentityT&& value) { m_identityHasBeenSet = true; m_identity = std::forward<IdentityT>(value); }
55 template<typename IdentityT = Aws::String>
56 SetIdentityMailFromDomainRequest& WithIdentity(IdentityT&& value) { SetIdentity(std::forward<IdentityT>(value)); return *this;}
58
60
69 inline const Aws::String& GetMailFromDomain() const { return m_mailFromDomain; }
70 inline bool MailFromDomainHasBeenSet() const { return m_mailFromDomainHasBeenSet; }
71 template<typename MailFromDomainT = Aws::String>
72 void SetMailFromDomain(MailFromDomainT&& value) { m_mailFromDomainHasBeenSet = true; m_mailFromDomain = std::forward<MailFromDomainT>(value); }
73 template<typename MailFromDomainT = Aws::String>
74 SetIdentityMailFromDomainRequest& WithMailFromDomain(MailFromDomainT&& value) { SetMailFromDomain(std::forward<MailFromDomainT>(value)); return *this;}
76
78
88 inline BehaviorOnMXFailure GetBehaviorOnMXFailure() const { return m_behaviorOnMXFailure; }
89 inline bool BehaviorOnMXFailureHasBeenSet() const { return m_behaviorOnMXFailureHasBeenSet; }
90 inline void SetBehaviorOnMXFailure(BehaviorOnMXFailure value) { m_behaviorOnMXFailureHasBeenSet = true; m_behaviorOnMXFailure = value; }
93 private:
94
95 Aws::String m_identity;
96 bool m_identityHasBeenSet = false;
97
98 Aws::String m_mailFromDomain;
99 bool m_mailFromDomainHasBeenSet = false;
100
102 bool m_behaviorOnMXFailureHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace SES
107} // namespace Aws
SetIdentityMailFromDomainRequest & WithMailFromDomain(MailFromDomainT &&value)
SetIdentityMailFromDomainRequest & WithBehaviorOnMXFailure(BehaviorOnMXFailure value)
SetIdentityMailFromDomainRequest & WithIdentity(IdentityT &&value)
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_SES_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String