AWS SDK for C++  0.14.3
AWS SDK for C++
GetContextKeysForPrincipalPolicyRequest.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/iam/IAM_EXPORTS.h>
17 #include <aws/iam/IAMRequest.h>
20 
21 namespace Aws
22 {
23 namespace IAM
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
49  inline const Aws::String& GetPolicySourceArn() const{ return m_policySourceArn; }
50 
64  inline void SetPolicySourceArn(const Aws::String& value) { m_policySourceArnHasBeenSet = true; m_policySourceArn = value; }
65 
79  inline void SetPolicySourceArn(Aws::String&& value) { m_policySourceArnHasBeenSet = true; m_policySourceArn = value; }
80 
94  inline void SetPolicySourceArn(const char* value) { m_policySourceArnHasBeenSet = true; m_policySourceArn.assign(value); }
95 
109  inline GetContextKeysForPrincipalPolicyRequest& WithPolicySourceArn(const Aws::String& value) { SetPolicySourceArn(value); return *this;}
110 
124  inline GetContextKeysForPrincipalPolicyRequest& WithPolicySourceArn(Aws::String&& value) { SetPolicySourceArn(value); return *this;}
125 
139  inline GetContextKeysForPrincipalPolicyRequest& WithPolicySourceArn(const char* value) { SetPolicySourceArn(value); return *this;}
140 
150  inline const Aws::Vector<Aws::String>& GetPolicyInputList() const{ return m_policyInputList; }
151 
161  inline void SetPolicyInputList(const Aws::Vector<Aws::String>& value) { m_policyInputListHasBeenSet = true; m_policyInputList = value; }
162 
172  inline void SetPolicyInputList(Aws::Vector<Aws::String>&& value) { m_policyInputListHasBeenSet = true; m_policyInputList = value; }
173 
183  inline GetContextKeysForPrincipalPolicyRequest& WithPolicyInputList(const Aws::Vector<Aws::String>& value) { SetPolicyInputList(value); return *this;}
184 
194  inline GetContextKeysForPrincipalPolicyRequest& WithPolicyInputList(Aws::Vector<Aws::String>&& value) { SetPolicyInputList(value); return *this;}
195 
205  inline GetContextKeysForPrincipalPolicyRequest& AddPolicyInputList(const Aws::String& value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(value); return *this; }
206 
216  inline GetContextKeysForPrincipalPolicyRequest& AddPolicyInputList(Aws::String&& value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(value); return *this; }
217 
227  inline GetContextKeysForPrincipalPolicyRequest& AddPolicyInputList(const char* value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(value); return *this; }
228 
229  private:
230  Aws::String m_policySourceArn;
231  bool m_policySourceArnHasBeenSet;
232  Aws::Vector<Aws::String> m_policyInputList;
233  bool m_policyInputListHasBeenSet;
234  };
235 
236 } // namespace Model
237 } // namespace IAM
238 } // namespace Aws
GetContextKeysForPrincipalPolicyRequest & WithPolicyInputList(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
GetContextKeysForPrincipalPolicyRequest & AddPolicyInputList(const Aws::String &value)
GetContextKeysForPrincipalPolicyRequest & WithPolicySourceArn(const Aws::String &value)
GetContextKeysForPrincipalPolicyRequest & WithPolicyInputList(const Aws::Vector< Aws::String > &value)
GetContextKeysForPrincipalPolicyRequest & WithPolicySourceArn(Aws::String &&value)
GetContextKeysForPrincipalPolicyRequest & WithPolicySourceArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetContextKeysForPrincipalPolicyRequest & AddPolicyInputList(const char *value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:37
GetContextKeysForPrincipalPolicyRequest & AddPolicyInputList(Aws::String &&value)
JSON (JavaScript Object Notation).