AWS SDK for C++  0.12.9
AWS SDK for C++
GetIdentityPoliciesRequest.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>
20 
21 namespace Aws
22 {
23 namespace SES
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
43  inline const Aws::String& GetIdentity() const{ return m_identity; }
44 
52  inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; }
53 
61  inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = value; }
62 
70  inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); }
71 
79  inline GetIdentityPoliciesRequest& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;}
80 
88  inline GetIdentityPoliciesRequest& WithIdentity(Aws::String&& value) { SetIdentity(value); return *this;}
89 
97  inline GetIdentityPoliciesRequest& WithIdentity(const char* value) { SetIdentity(value); return *this;}
98 
104  inline const Aws::Vector<Aws::String>& GetPolicyNames() const{ return m_policyNames; }
105 
111  inline void SetPolicyNames(const Aws::Vector<Aws::String>& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; }
112 
118  inline void SetPolicyNames(Aws::Vector<Aws::String>&& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; }
119 
125  inline GetIdentityPoliciesRequest& WithPolicyNames(const Aws::Vector<Aws::String>& value) { SetPolicyNames(value); return *this;}
126 
132  inline GetIdentityPoliciesRequest& WithPolicyNames(Aws::Vector<Aws::String>&& value) { SetPolicyNames(value); return *this;}
133 
139  inline GetIdentityPoliciesRequest& AddPolicyNames(const Aws::String& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
140 
146  inline GetIdentityPoliciesRequest& AddPolicyNames(Aws::String&& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
147 
153  inline GetIdentityPoliciesRequest& AddPolicyNames(const char* value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
154 
155  private:
156  Aws::String m_identity;
157  bool m_identityHasBeenSet;
158  Aws::Vector<Aws::String> m_policyNames;
159  bool m_policyNamesHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace SES
164 } // namespace Aws
GetIdentityPoliciesRequest & AddPolicyNames(Aws::String &&value)
GetIdentityPoliciesRequest & WithPolicyNames(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetPolicyNames(Aws::Vector< Aws::String > &&value)
GetIdentityPoliciesRequest & AddPolicyNames(const char *value)
GetIdentityPoliciesRequest & WithIdentity(Aws::String &&value)
GetIdentityPoliciesRequest & AddPolicyNames(const Aws::String &value)
GetIdentityPoliciesRequest & WithIdentity(const char *value)
GetIdentityPoliciesRequest & WithPolicyNames(Aws::Vector< Aws::String > &&value)
void SetPolicyNames(const Aws::Vector< 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
const Aws::Vector< Aws::String > & GetPolicyNames() const
GetIdentityPoliciesRequest & WithIdentity(const Aws::String &value)
JSON (JavaScript Object Notation).