AWS SDK for C++  0.14.3
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 
36  {
37  public:
39  Aws::String SerializePayload() const override;
40 
48  inline const Aws::String& GetIdentity() const{ return m_identity; }
49 
57  inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; }
58 
66  inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = value; }
67 
75  inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); }
76 
84  inline GetIdentityPoliciesRequest& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;}
85 
93  inline GetIdentityPoliciesRequest& WithIdentity(Aws::String&& value) { SetIdentity(value); return *this;}
94 
102  inline GetIdentityPoliciesRequest& WithIdentity(const char* value) { SetIdentity(value); return *this;}
103 
109  inline const Aws::Vector<Aws::String>& GetPolicyNames() const{ return m_policyNames; }
110 
116  inline void SetPolicyNames(const Aws::Vector<Aws::String>& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; }
117 
123  inline void SetPolicyNames(Aws::Vector<Aws::String>&& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; }
124 
130  inline GetIdentityPoliciesRequest& WithPolicyNames(const Aws::Vector<Aws::String>& value) { SetPolicyNames(value); return *this;}
131 
137  inline GetIdentityPoliciesRequest& WithPolicyNames(Aws::Vector<Aws::String>&& value) { SetPolicyNames(value); return *this;}
138 
144  inline GetIdentityPoliciesRequest& AddPolicyNames(const Aws::String& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
145 
151  inline GetIdentityPoliciesRequest& AddPolicyNames(Aws::String&& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
152 
158  inline GetIdentityPoliciesRequest& AddPolicyNames(const char* value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
159 
160  private:
161  Aws::String m_identity;
162  bool m_identityHasBeenSet;
163  Aws::Vector<Aws::String> m_policyNames;
164  bool m_policyNamesHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace SES
169 } // 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:37
const Aws::Vector< Aws::String > & GetPolicyNames() const
GetIdentityPoliciesRequest & WithIdentity(const Aws::String &value)
JSON (JavaScript Object Notation).