AWS SDK for C++  1.8.128
AWS SDK for C++
PutIdentityPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/email/SESRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SES
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 "PutIdentityPolicy"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  protected:
42  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43 
44  public:
45 
53  inline const Aws::String& GetIdentity() const{ return m_identity; }
54 
62  inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; }
63 
71  inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; }
72 
80  inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = std::move(value); }
81 
89  inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); }
90 
98  inline PutIdentityPolicyRequest& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;}
99 
107  inline PutIdentityPolicyRequest& WithIdentity(Aws::String&& value) { SetIdentity(std::move(value)); return *this;}
108 
116  inline PutIdentityPolicyRequest& WithIdentity(const char* value) { SetIdentity(value); return *this;}
117 
118 
123  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
124 
129  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
130 
135  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
136 
141  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
142 
147  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
148 
153  inline PutIdentityPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
154 
159  inline PutIdentityPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
160 
165  inline PutIdentityPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
166 
167 
175  inline const Aws::String& GetPolicy() const{ return m_policy; }
176 
184  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
185 
193  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
194 
202  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
203 
211  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
212 
220  inline PutIdentityPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
221 
229  inline PutIdentityPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
230 
238  inline PutIdentityPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
239 
240  private:
241 
242  Aws::String m_identity;
243  bool m_identityHasBeenSet;
244 
245  Aws::String m_policyName;
246  bool m_policyNameHasBeenSet;
247 
248  Aws::String m_policy;
249  bool m_policyHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace SES
254 } // namespace Aws
Aws::SES::Model::PutIdentityPolicyRequest::GetIdentity
const Aws::String & GetIdentity() const
Definition: PutIdentityPolicyRequest.h:53
Aws::SES::Model::PutIdentityPolicyRequest::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: PutIdentityPolicyRequest.h:141
Aws::Http::URI
Definition: URI.h:32
Aws::SES::Model::PutIdentityPolicyRequest::SetIdentity
void SetIdentity(Aws::String &&value)
Definition: PutIdentityPolicyRequest.h:80
Aws::SES::Model::PutIdentityPolicyRequest::WithPolicyName
PutIdentityPolicyRequest & WithPolicyName(const char *value)
Definition: PutIdentityPolicyRequest.h:165
Aws::SES::Model::PutIdentityPolicyRequest
Definition: PutIdentityPolicyRequest.h:29
Aws::SES::Model::PutIdentityPolicyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SES::Model::PutIdentityPolicyRequest::WithPolicy
PutIdentityPolicyRequest & WithPolicy(Aws::String &&value)
Definition: PutIdentityPolicyRequest.h:229
Aws::SES::Model::PutIdentityPolicyRequest::WithIdentity
PutIdentityPolicyRequest & WithIdentity(Aws::String &&value)
Definition: PutIdentityPolicyRequest.h:107
Aws::SES::Model::PutIdentityPolicyRequest::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: PutIdentityPolicyRequest.h:135
Aws::SES::Model::PutIdentityPolicyRequest::IdentityHasBeenSet
bool IdentityHasBeenSet() const
Definition: PutIdentityPolicyRequest.h:62
Aws::SES::Model::PutIdentityPolicyRequest::SetIdentity
void SetIdentity(const char *value)
Definition: PutIdentityPolicyRequest.h:89
Aws::SES::Model::PutIdentityPolicyRequest::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: PutIdentityPolicyRequest.h:193
Aws::SES::Model::PutIdentityPolicyRequest::WithPolicyName
PutIdentityPolicyRequest & WithPolicyName(Aws::String &&value)
Definition: PutIdentityPolicyRequest.h:159
Aws::SES::Model::PutIdentityPolicyRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: PutIdentityPolicyRequest.h:184
Aws::SES::Model::PutIdentityPolicyRequest::GetPolicy
const Aws::String & GetPolicy() const
Definition: PutIdentityPolicyRequest.h:175
Aws::SES::Model::PutIdentityPolicyRequest::WithPolicyName
PutIdentityPolicyRequest & WithPolicyName(const Aws::String &value)
Definition: PutIdentityPolicyRequest.h:153
Aws::SES::Model::PutIdentityPolicyRequest::WithIdentity
PutIdentityPolicyRequest & WithIdentity(const Aws::String &value)
Definition: PutIdentityPolicyRequest.h:98
SESRequest.h
Aws::SES::Model::PutIdentityPolicyRequest::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: PutIdentityPolicyRequest.h:202
Aws::SES::Model::PutIdentityPolicyRequest::WithPolicy
PutIdentityPolicyRequest & WithPolicy(const Aws::String &value)
Definition: PutIdentityPolicyRequest.h:220
Aws::SES::Model::PutIdentityPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
SES_EXPORTS.h
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::SESRequest
Definition: SESRequest.h:17
Aws::SES::Model::PutIdentityPolicyRequest::SetIdentity
void SetIdentity(const Aws::String &value)
Definition: PutIdentityPolicyRequest.h:71
Aws::SES::Model::PutIdentityPolicyRequest::PutIdentityPolicyRequest
PutIdentityPolicyRequest()
Aws::SES::Model::PutIdentityPolicyRequest::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: PutIdentityPolicyRequest.h:123
Aws::SES::Model::PutIdentityPolicyRequest::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: PutIdentityPolicyRequest.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SES::Model::PutIdentityPolicyRequest::WithPolicy
PutIdentityPolicyRequest & WithPolicy(const char *value)
Definition: PutIdentityPolicyRequest.h:238
Aws::SES::Model::PutIdentityPolicyRequest::SetPolicyName
void SetPolicyName(const char *value)
Definition: PutIdentityPolicyRequest.h:147
Aws::SES::Model::PutIdentityPolicyRequest::WithIdentity
PutIdentityPolicyRequest & WithIdentity(const char *value)
Definition: PutIdentityPolicyRequest.h:116
Aws::SES::Model::PutIdentityPolicyRequest::SetPolicy
void SetPolicy(const char *value)
Definition: PutIdentityPolicyRequest.h:211
Aws::SES::Model::PutIdentityPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutIdentityPolicyRequest.h:37