AWS SDK for C++  1.9.161
AWS SDK for C++
PutEmailIdentityMailFromAttributesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SESV2
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "PutEmailIdentityMailFromAttributes"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetEmailIdentity() const{ return m_emailIdentity; }
44 
48  inline bool EmailIdentityHasBeenSet() const { return m_emailIdentityHasBeenSet; }
49 
53  inline void SetEmailIdentity(const Aws::String& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = value; }
54 
58  inline void SetEmailIdentity(Aws::String&& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = std::move(value); }
59 
63  inline void SetEmailIdentity(const char* value) { m_emailIdentityHasBeenSet = true; m_emailIdentity.assign(value); }
64 
68  inline PutEmailIdentityMailFromAttributesRequest& WithEmailIdentity(const Aws::String& value) { SetEmailIdentity(value); return *this;}
69 
73  inline PutEmailIdentityMailFromAttributesRequest& WithEmailIdentity(Aws::String&& value) { SetEmailIdentity(std::move(value)); return *this;}
74 
78  inline PutEmailIdentityMailFromAttributesRequest& WithEmailIdentity(const char* value) { SetEmailIdentity(value); return *this;}
79 
80 
89  inline const Aws::String& GetMailFromDomain() const{ return m_mailFromDomain; }
90 
99  inline bool MailFromDomainHasBeenSet() const { return m_mailFromDomainHasBeenSet; }
100 
109  inline void SetMailFromDomain(const Aws::String& value) { m_mailFromDomainHasBeenSet = true; m_mailFromDomain = value; }
110 
119  inline void SetMailFromDomain(Aws::String&& value) { m_mailFromDomainHasBeenSet = true; m_mailFromDomain = std::move(value); }
120 
129  inline void SetMailFromDomain(const char* value) { m_mailFromDomainHasBeenSet = true; m_mailFromDomain.assign(value); }
130 
139  inline PutEmailIdentityMailFromAttributesRequest& WithMailFromDomain(const Aws::String& value) { SetMailFromDomain(value); return *this;}
140 
149  inline PutEmailIdentityMailFromAttributesRequest& WithMailFromDomain(Aws::String&& value) { SetMailFromDomain(std::move(value)); return *this;}
150 
159  inline PutEmailIdentityMailFromAttributesRequest& WithMailFromDomain(const char* value) { SetMailFromDomain(value); return *this;}
160 
161 
172  inline const BehaviorOnMxFailure& GetBehaviorOnMxFailure() const{ return m_behaviorOnMxFailure; }
173 
184  inline bool BehaviorOnMxFailureHasBeenSet() const { return m_behaviorOnMxFailureHasBeenSet; }
185 
196  inline void SetBehaviorOnMxFailure(const BehaviorOnMxFailure& value) { m_behaviorOnMxFailureHasBeenSet = true; m_behaviorOnMxFailure = value; }
197 
208  inline void SetBehaviorOnMxFailure(BehaviorOnMxFailure&& value) { m_behaviorOnMxFailureHasBeenSet = true; m_behaviorOnMxFailure = std::move(value); }
209 
220  inline PutEmailIdentityMailFromAttributesRequest& WithBehaviorOnMxFailure(const BehaviorOnMxFailure& value) { SetBehaviorOnMxFailure(value); return *this;}
221 
232  inline PutEmailIdentityMailFromAttributesRequest& WithBehaviorOnMxFailure(BehaviorOnMxFailure&& value) { SetBehaviorOnMxFailure(std::move(value)); return *this;}
233 
234  private:
235 
236  Aws::String m_emailIdentity;
237  bool m_emailIdentityHasBeenSet;
238 
239  Aws::String m_mailFromDomain;
240  bool m_mailFromDomainHasBeenSet;
241 
242  BehaviorOnMxFailure m_behaviorOnMxFailure;
243  bool m_behaviorOnMxFailureHasBeenSet;
244  };
245 
246 } // namespace Model
247 } // namespace SESV2
248 } // namespace Aws
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::SetEmailIdentity
void SetEmailIdentity(Aws::String &&value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:58
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::SetMailFromDomain
void SetMailFromDomain(const char *value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:129
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::SetEmailIdentity
void SetEmailIdentity(const Aws::String &value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:53
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::WithBehaviorOnMxFailure
PutEmailIdentityMailFromAttributesRequest & WithBehaviorOnMxFailure(const BehaviorOnMxFailure &value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:220
BehaviorOnMxFailure.h
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::GetEmailIdentity
const Aws::String & GetEmailIdentity() const
Definition: PutEmailIdentityMailFromAttributesRequest.h:43
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::WithEmailIdentity
PutEmailIdentityMailFromAttributesRequest & WithEmailIdentity(const Aws::String &value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:68
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::EmailIdentityHasBeenSet
bool EmailIdentityHasBeenSet() const
Definition: PutEmailIdentityMailFromAttributesRequest.h:48
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::WithMailFromDomain
PutEmailIdentityMailFromAttributesRequest & WithMailFromDomain(const char *value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:159
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::SetEmailIdentity
void SetEmailIdentity(const char *value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:63
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::PutEmailIdentityMailFromAttributesRequest
PutEmailIdentityMailFromAttributesRequest()
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::GetBehaviorOnMxFailure
const BehaviorOnMxFailure & GetBehaviorOnMxFailure() const
Definition: PutEmailIdentityMailFromAttributesRequest.h:172
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::WithMailFromDomain
PutEmailIdentityMailFromAttributesRequest & WithMailFromDomain(const Aws::String &value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:139
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::WithEmailIdentity
PutEmailIdentityMailFromAttributesRequest & WithEmailIdentity(Aws::String &&value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:73
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::SetBehaviorOnMxFailure
void SetBehaviorOnMxFailure(BehaviorOnMxFailure &&value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:208
Aws::SESV2::Model::BehaviorOnMxFailure
BehaviorOnMxFailure
Definition: BehaviorOnMxFailure.h:17
AWSString.h
SESV2_EXPORTS.h
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest
Definition: PutEmailIdentityMailFromAttributesRequest.h:27
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::SetBehaviorOnMxFailure
void SetBehaviorOnMxFailure(const BehaviorOnMxFailure &value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:196
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::SetMailFromDomain
void SetMailFromDomain(Aws::String &&value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:119
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::WithBehaviorOnMxFailure
PutEmailIdentityMailFromAttributesRequest & WithBehaviorOnMxFailure(BehaviorOnMxFailure &&value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:232
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::MailFromDomainHasBeenSet
bool MailFromDomainHasBeenSet() const
Definition: PutEmailIdentityMailFromAttributesRequest.h:99
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::GetMailFromDomain
const Aws::String & GetMailFromDomain() const
Definition: PutEmailIdentityMailFromAttributesRequest.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::WithMailFromDomain
PutEmailIdentityMailFromAttributesRequest & WithMailFromDomain(Aws::String &&value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:149
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::WithEmailIdentity
PutEmailIdentityMailFromAttributesRequest & WithEmailIdentity(const char *value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:78
SESV2Request.h
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::SetMailFromDomain
void SetMailFromDomain(const Aws::String &value)
Definition: PutEmailIdentityMailFromAttributesRequest.h:109
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::BehaviorOnMxFailureHasBeenSet
bool BehaviorOnMxFailureHasBeenSet() const
Definition: PutEmailIdentityMailFromAttributesRequest.h:184
Aws::SESV2::Model::PutEmailIdentityMailFromAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutEmailIdentityMailFromAttributesRequest.h:35