AWS SDK for C++  1.9.160
AWS SDK for C++
UpdateEmailIdentityPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SESV2
15 {
16 namespace Model
17 {
18 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "UpdateEmailIdentityPolicy"; }
38 
39  Aws::String SerializePayload() const override;
40 
41 
45  inline const Aws::String& GetEmailIdentity() const{ return m_emailIdentity; }
46 
50  inline bool EmailIdentityHasBeenSet() const { return m_emailIdentityHasBeenSet; }
51 
55  inline void SetEmailIdentity(const Aws::String& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = value; }
56 
60  inline void SetEmailIdentity(Aws::String&& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = std::move(value); }
61 
65  inline void SetEmailIdentity(const char* value) { m_emailIdentityHasBeenSet = true; m_emailIdentity.assign(value); }
66 
70  inline UpdateEmailIdentityPolicyRequest& WithEmailIdentity(const Aws::String& value) { SetEmailIdentity(value); return *this;}
71 
75  inline UpdateEmailIdentityPolicyRequest& WithEmailIdentity(Aws::String&& value) { SetEmailIdentity(std::move(value)); return *this;}
76 
80  inline UpdateEmailIdentityPolicyRequest& WithEmailIdentity(const char* value) { SetEmailIdentity(value); return *this;}
81 
82 
87  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
88 
93  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
94 
99  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
100 
105  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
106 
111  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
112 
117  inline UpdateEmailIdentityPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
118 
123  inline UpdateEmailIdentityPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
124 
129  inline UpdateEmailIdentityPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
130 
131 
138  inline const Aws::String& GetPolicy() const{ return m_policy; }
139 
146  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
147 
154  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
155 
162  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
163 
170  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
171 
178  inline UpdateEmailIdentityPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
179 
186  inline UpdateEmailIdentityPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
187 
194  inline UpdateEmailIdentityPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
195 
196  private:
197 
198  Aws::String m_emailIdentity;
199  bool m_emailIdentityHasBeenSet;
200 
201  Aws::String m_policyName;
202  bool m_policyNameHasBeenSet;
203 
204  Aws::String m_policy;
205  bool m_policyHasBeenSet;
206  };
207 
208 } // namespace Model
209 } // namespace SESV2
210 } // namespace Aws
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::WithPolicy
UpdateEmailIdentityPolicyRequest & WithPolicy(Aws::String &&value)
Definition: UpdateEmailIdentityPolicyRequest.h:186
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::WithEmailIdentity
UpdateEmailIdentityPolicyRequest & WithEmailIdentity(Aws::String &&value)
Definition: UpdateEmailIdentityPolicyRequest.h:75
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::GetEmailIdentity
const Aws::String & GetEmailIdentity() const
Definition: UpdateEmailIdentityPolicyRequest.h:45
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::WithEmailIdentity
UpdateEmailIdentityPolicyRequest & WithEmailIdentity(const Aws::String &value)
Definition: UpdateEmailIdentityPolicyRequest.h:70
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: UpdateEmailIdentityPolicyRequest.h:162
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::SetPolicy
void SetPolicy(const char *value)
Definition: UpdateEmailIdentityPolicyRequest.h:170
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: UpdateEmailIdentityPolicyRequest.h:154
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::SetEmailIdentity
void SetEmailIdentity(const char *value)
Definition: UpdateEmailIdentityPolicyRequest.h:65
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::SetEmailIdentity
void SetEmailIdentity(const Aws::String &value)
Definition: UpdateEmailIdentityPolicyRequest.h:55
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: UpdateEmailIdentityPolicyRequest.h:146
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: UpdateEmailIdentityPolicyRequest.h:93
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::SetEmailIdentity
void SetEmailIdentity(Aws::String &&value)
Definition: UpdateEmailIdentityPolicyRequest.h:60
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::UpdateEmailIdentityPolicyRequest
UpdateEmailIdentityPolicyRequest()
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::WithPolicy
UpdateEmailIdentityPolicyRequest & WithPolicy(const Aws::String &value)
Definition: UpdateEmailIdentityPolicyRequest.h:178
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest
Definition: UpdateEmailIdentityPolicyRequest.h:29
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateEmailIdentityPolicyRequest.h:37
AWSString.h
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::WithPolicyName
UpdateEmailIdentityPolicyRequest & WithPolicyName(const Aws::String &value)
Definition: UpdateEmailIdentityPolicyRequest.h:117
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::WithPolicyName
UpdateEmailIdentityPolicyRequest & WithPolicyName(Aws::String &&value)
Definition: UpdateEmailIdentityPolicyRequest.h:123
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::EmailIdentityHasBeenSet
bool EmailIdentityHasBeenSet() const
Definition: UpdateEmailIdentityPolicyRequest.h:50
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::SetPolicyName
void SetPolicyName(const char *value)
Definition: UpdateEmailIdentityPolicyRequest.h:111
SESV2_EXPORTS.h
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: UpdateEmailIdentityPolicyRequest.h:105
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::WithEmailIdentity
UpdateEmailIdentityPolicyRequest & WithEmailIdentity(const char *value)
Definition: UpdateEmailIdentityPolicyRequest.h:80
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::GetPolicy
const Aws::String & GetPolicy() const
Definition: UpdateEmailIdentityPolicyRequest.h:138
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: UpdateEmailIdentityPolicyRequest.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::WithPolicy
UpdateEmailIdentityPolicyRequest & WithPolicy(const char *value)
Definition: UpdateEmailIdentityPolicyRequest.h:194
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SESV2Request.h
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::WithPolicyName
UpdateEmailIdentityPolicyRequest & WithPolicyName(const char *value)
Definition: UpdateEmailIdentityPolicyRequest.h:129
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::UpdateEmailIdentityPolicyRequest::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: UpdateEmailIdentityPolicyRequest.h:99