AWS SDK for C++  0.12.9
AWS SDK for C++
PutIdentityPolicyRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/email/SES_EXPORTS.h>
17 #include <aws/email/SESRequest.h>
19 
20 namespace Aws
21 {
22 namespace SES
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
42  inline const Aws::String& GetIdentity() const{ return m_identity; }
43 
51  inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; }
52 
60  inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = value; }
61 
69  inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); }
70 
78  inline PutIdentityPolicyRequest& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;}
79 
87  inline PutIdentityPolicyRequest& WithIdentity(Aws::String&& value) { SetIdentity(value); return *this;}
88 
96  inline PutIdentityPolicyRequest& WithIdentity(const char* value) { SetIdentity(value); return *this;}
97 
102  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
103 
108  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
109 
114  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
115 
120  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
121 
126  inline PutIdentityPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
127 
132  inline PutIdentityPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(value); return *this;}
133 
138  inline PutIdentityPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
139 
147  inline const Aws::String& GetPolicy() const{ return m_policy; }
148 
156  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
157 
165  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = value; }
166 
174  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
175 
183  inline PutIdentityPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
184 
192  inline PutIdentityPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(value); return *this;}
193 
201  inline PutIdentityPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
202 
203  private:
204  Aws::String m_identity;
205  bool m_identityHasBeenSet;
206  Aws::String m_policyName;
207  bool m_policyNameHasBeenSet;
208  Aws::String m_policy;
209  bool m_policyHasBeenSet;
210  };
211 
212 } // namespace Model
213 } // namespace SES
214 } // namespace Aws
PutIdentityPolicyRequest & WithPolicyName(const Aws::String &value)
PutIdentityPolicyRequest & WithPolicy(const Aws::String &value)
PutIdentityPolicyRequest & WithIdentity(const char *value)
PutIdentityPolicyRequest & WithPolicyName(const char *value)
PutIdentityPolicyRequest & WithPolicy(const char *value)
PutIdentityPolicyRequest & WithPolicyName(Aws::String &&value)
PutIdentityPolicyRequest & WithIdentity(const Aws::String &value)
PutIdentityPolicyRequest & WithIdentity(Aws::String &&value)
PutIdentityPolicyRequest & WithPolicy(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SES_API
Definition: SES_EXPORTS.h:34
JSON (JavaScript Object Notation).