AWS SDK for C++  1.9.156
AWS SDK for C++
CreateEmailIdentityPolicyRequest.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 "CreateEmailIdentityPolicy"; }
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 CreateEmailIdentityPolicyRequest& WithEmailIdentity(const Aws::String& value) { SetEmailIdentity(value); return *this;}
71 
75  inline CreateEmailIdentityPolicyRequest& WithEmailIdentity(Aws::String&& value) { SetEmailIdentity(std::move(value)); return *this;}
76 
80  inline CreateEmailIdentityPolicyRequest& 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 CreateEmailIdentityPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
118 
123  inline CreateEmailIdentityPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
124 
129  inline CreateEmailIdentityPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
130 
131 
139  inline const Aws::String& GetPolicy() const{ return m_policy; }
140 
148  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
149 
157  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
158 
166  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
167 
175  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
176 
184  inline CreateEmailIdentityPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
185 
193  inline CreateEmailIdentityPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
194 
202  inline CreateEmailIdentityPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
203 
204  private:
205 
206  Aws::String m_emailIdentity;
207  bool m_emailIdentityHasBeenSet;
208 
209  Aws::String m_policyName;
210  bool m_policyNameHasBeenSet;
211 
212  Aws::String m_policy;
213  bool m_policyHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace SESV2
218 } // namespace Aws
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::SetPolicy
void SetPolicy(const char *value)
Definition: CreateEmailIdentityPolicyRequest.h:175
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: CreateEmailIdentityPolicyRequest.h:93
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: CreateEmailIdentityPolicyRequest.h:166
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::GetEmailIdentity
const Aws::String & GetEmailIdentity() const
Definition: CreateEmailIdentityPolicyRequest.h:45
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::SetEmailIdentity
void SetEmailIdentity(const Aws::String &value)
Definition: CreateEmailIdentityPolicyRequest.h:55
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::WithPolicy
CreateEmailIdentityPolicyRequest & WithPolicy(const Aws::String &value)
Definition: CreateEmailIdentityPolicyRequest.h:184
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::WithEmailIdentity
CreateEmailIdentityPolicyRequest & WithEmailIdentity(Aws::String &&value)
Definition: CreateEmailIdentityPolicyRequest.h:75
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest
Definition: CreateEmailIdentityPolicyRequest.h:29
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::SetPolicyName
void SetPolicyName(const char *value)
Definition: CreateEmailIdentityPolicyRequest.h:111
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateEmailIdentityPolicyRequest.h:37
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: CreateEmailIdentityPolicyRequest.h:148
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::GetPolicy
const Aws::String & GetPolicy() const
Definition: CreateEmailIdentityPolicyRequest.h:139
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: CreateEmailIdentityPolicyRequest.h:157
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::SetEmailIdentity
void SetEmailIdentity(Aws::String &&value)
Definition: CreateEmailIdentityPolicyRequest.h:60
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::EmailIdentityHasBeenSet
bool EmailIdentityHasBeenSet() const
Definition: CreateEmailIdentityPolicyRequest.h:50
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::SetEmailIdentity
void SetEmailIdentity(const char *value)
Definition: CreateEmailIdentityPolicyRequest.h:65
AWSString.h
SESV2_EXPORTS.h
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::WithPolicy
CreateEmailIdentityPolicyRequest & WithPolicy(const char *value)
Definition: CreateEmailIdentityPolicyRequest.h:202
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::CreateEmailIdentityPolicyRequest
CreateEmailIdentityPolicyRequest()
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: CreateEmailIdentityPolicyRequest.h:105
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::WithPolicy
CreateEmailIdentityPolicyRequest & WithPolicy(Aws::String &&value)
Definition: CreateEmailIdentityPolicyRequest.h:193
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::WithPolicyName
CreateEmailIdentityPolicyRequest & WithPolicyName(const Aws::String &value)
Definition: CreateEmailIdentityPolicyRequest.h:117
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::WithPolicyName
CreateEmailIdentityPolicyRequest & WithPolicyName(Aws::String &&value)
Definition: CreateEmailIdentityPolicyRequest.h:123
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::CreateEmailIdentityPolicyRequest::WithEmailIdentity
CreateEmailIdentityPolicyRequest & WithEmailIdentity(const char *value)
Definition: CreateEmailIdentityPolicyRequest.h:80
SESV2Request.h
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::WithPolicyName
CreateEmailIdentityPolicyRequest & WithPolicyName(const char *value)
Definition: CreateEmailIdentityPolicyRequest.h:129
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: CreateEmailIdentityPolicyRequest.h:99
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::WithEmailIdentity
CreateEmailIdentityPolicyRequest & WithEmailIdentity(const Aws::String &value)
Definition: CreateEmailIdentityPolicyRequest.h:70
Aws::SESV2::Model::CreateEmailIdentityPolicyRequest::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: CreateEmailIdentityPolicyRequest.h:87