AWS SDK for C++  1.9.40
AWS SDK for C++
GetContextKeysForPrincipalPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
8 #include <aws/iam/IAMRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IAM
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "GetContextKeysForPrincipalPolicy"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
52  inline const Aws::String& GetPolicySourceArn() const{ return m_policySourceArn; }
53 
66  inline bool PolicySourceArnHasBeenSet() const { return m_policySourceArnHasBeenSet; }
67 
80  inline void SetPolicySourceArn(const Aws::String& value) { m_policySourceArnHasBeenSet = true; m_policySourceArn = value; }
81 
94  inline void SetPolicySourceArn(Aws::String&& value) { m_policySourceArnHasBeenSet = true; m_policySourceArn = std::move(value); }
95 
108  inline void SetPolicySourceArn(const char* value) { m_policySourceArnHasBeenSet = true; m_policySourceArn.assign(value); }
109 
122  inline GetContextKeysForPrincipalPolicyRequest& WithPolicySourceArn(const Aws::String& value) { SetPolicySourceArn(value); return *this;}
123 
136  inline GetContextKeysForPrincipalPolicyRequest& WithPolicySourceArn(Aws::String&& value) { SetPolicySourceArn(std::move(value)); return *this;}
137 
150  inline GetContextKeysForPrincipalPolicyRequest& WithPolicySourceArn(const char* value) { SetPolicySourceArn(value); return *this;}
151 
152 
165  inline const Aws::Vector<Aws::String>& GetPolicyInputList() const{ return m_policyInputList; }
166 
179  inline bool PolicyInputListHasBeenSet() const { return m_policyInputListHasBeenSet; }
180 
193  inline void SetPolicyInputList(const Aws::Vector<Aws::String>& value) { m_policyInputListHasBeenSet = true; m_policyInputList = value; }
194 
207  inline void SetPolicyInputList(Aws::Vector<Aws::String>&& value) { m_policyInputListHasBeenSet = true; m_policyInputList = std::move(value); }
208 
221  inline GetContextKeysForPrincipalPolicyRequest& WithPolicyInputList(const Aws::Vector<Aws::String>& value) { SetPolicyInputList(value); return *this;}
222 
235  inline GetContextKeysForPrincipalPolicyRequest& WithPolicyInputList(Aws::Vector<Aws::String>&& value) { SetPolicyInputList(std::move(value)); return *this;}
236 
249  inline GetContextKeysForPrincipalPolicyRequest& AddPolicyInputList(const Aws::String& value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(value); return *this; }
250 
263  inline GetContextKeysForPrincipalPolicyRequest& AddPolicyInputList(Aws::String&& value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(std::move(value)); return *this; }
264 
277  inline GetContextKeysForPrincipalPolicyRequest& AddPolicyInputList(const char* value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(value); return *this; }
278 
279  private:
280 
281  Aws::String m_policySourceArn;
282  bool m_policySourceArnHasBeenSet;
283 
284  Aws::Vector<Aws::String> m_policyInputList;
285  bool m_policyInputListHasBeenSet;
286  };
287 
288 } // namespace Model
289 } // namespace IAM
290 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::SetPolicyInputList
void SetPolicyInputList(const Aws::Vector< Aws::String > &value)
Definition: GetContextKeysForPrincipalPolicyRequest.h:193
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::WithPolicyInputList
GetContextKeysForPrincipalPolicyRequest & WithPolicyInputList(const Aws::Vector< Aws::String > &value)
Definition: GetContextKeysForPrincipalPolicyRequest.h:221
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::WithPolicySourceArn
GetContextKeysForPrincipalPolicyRequest & WithPolicySourceArn(const Aws::String &value)
Definition: GetContextKeysForPrincipalPolicyRequest.h:122
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::SetPolicySourceArn
void SetPolicySourceArn(const char *value)
Definition: GetContextKeysForPrincipalPolicyRequest.h:108
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::WithPolicySourceArn
GetContextKeysForPrincipalPolicyRequest & WithPolicySourceArn(const char *value)
Definition: GetContextKeysForPrincipalPolicyRequest.h:150
AWSVector.h
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::SetPolicySourceArn
void SetPolicySourceArn(const Aws::String &value)
Definition: GetContextKeysForPrincipalPolicyRequest.h:80
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::GetPolicyInputList
const Aws::Vector< Aws::String > & GetPolicyInputList() const
Definition: GetContextKeysForPrincipalPolicyRequest.h:165
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::AddPolicyInputList
GetContextKeysForPrincipalPolicyRequest & AddPolicyInputList(const char *value)
Definition: GetContextKeysForPrincipalPolicyRequest.h:277
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::GetContextKeysForPrincipalPolicyRequest
GetContextKeysForPrincipalPolicyRequest()
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::GetPolicySourceArn
const Aws::String & GetPolicySourceArn() const
Definition: GetContextKeysForPrincipalPolicyRequest.h:52
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::WithPolicyInputList
GetContextKeysForPrincipalPolicyRequest & WithPolicyInputList(Aws::Vector< Aws::String > &&value)
Definition: GetContextKeysForPrincipalPolicyRequest.h:235
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::PolicySourceArnHasBeenSet
bool PolicySourceArnHasBeenSet() const
Definition: GetContextKeysForPrincipalPolicyRequest.h:66
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::AddPolicyInputList
GetContextKeysForPrincipalPolicyRequest & AddPolicyInputList(Aws::String &&value)
Definition: GetContextKeysForPrincipalPolicyRequest.h:263
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::WithPolicySourceArn
GetContextKeysForPrincipalPolicyRequest & WithPolicySourceArn(Aws::String &&value)
Definition: GetContextKeysForPrincipalPolicyRequest.h:136
AWSString.h
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::SetPolicySourceArn
void SetPolicySourceArn(Aws::String &&value)
Definition: GetContextKeysForPrincipalPolicyRequest.h:94
IAM_EXPORTS.h
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetContextKeysForPrincipalPolicyRequest.h:31
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::AddPolicyInputList
GetContextKeysForPrincipalPolicyRequest & AddPolicyInputList(const Aws::String &value)
Definition: GetContextKeysForPrincipalPolicyRequest.h:249
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::SetPolicyInputList
void SetPolicyInputList(Aws::Vector< Aws::String > &&value)
Definition: GetContextKeysForPrincipalPolicyRequest.h:207
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest::PolicyInputListHasBeenSet
bool PolicyInputListHasBeenSet() const
Definition: GetContextKeysForPrincipalPolicyRequest.h:179
Aws::IAM::Model::GetContextKeysForPrincipalPolicyRequest
Definition: GetContextKeysForPrincipalPolicyRequest.h:23