AWS SDK for C++  1.9.44
AWS SDK for C++
GetPolicyRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IAM
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetPolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
45  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
46 
53  inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
54 
61  inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
62 
69  inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
70 
77  inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
78 
85  inline GetPolicyRequest& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
86 
93  inline GetPolicyRequest& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
94 
101  inline GetPolicyRequest& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
102 
103  private:
104 
105  Aws::String m_policyArn;
106  bool m_policyArnHasBeenSet;
107  };
108 
109 } // namespace Model
110 } // namespace IAM
111 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::GetPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::GetPolicyRequest::GetPolicyRequest
GetPolicyRequest()
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::GetPolicyRequest::SetPolicyArn
void SetPolicyArn(const char *value)
Definition: GetPolicyRequest.h:77
Aws::IAM::Model::GetPolicyRequest::WithPolicyArn
GetPolicyRequest & WithPolicyArn(Aws::String &&value)
Definition: GetPolicyRequest.h:93
Aws::IAM::Model::GetPolicyRequest::WithPolicyArn
GetPolicyRequest & WithPolicyArn(const char *value)
Definition: GetPolicyRequest.h:101
Aws::IAM::Model::GetPolicyRequest
Definition: GetPolicyRequest.h:22
AWSString.h
Aws::IAM::Model::GetPolicyRequest::GetPolicyArn
const Aws::String & GetPolicyArn() const
Definition: GetPolicyRequest.h:45
IAM_EXPORTS.h
Aws::IAM::Model::GetPolicyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::GetPolicyRequest::SetPolicyArn
void SetPolicyArn(const Aws::String &value)
Definition: GetPolicyRequest.h:61
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::GetPolicyRequest::WithPolicyArn
GetPolicyRequest & WithPolicyArn(const Aws::String &value)
Definition: GetPolicyRequest.h:85
Aws::IAM::Model::GetPolicyRequest::SetPolicyArn
void SetPolicyArn(Aws::String &&value)
Definition: GetPolicyRequest.h:69
Aws::IAM::Model::GetPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetPolicyRequest.h:30
Aws::IAM::Model::GetPolicyRequest::PolicyArnHasBeenSet
bool PolicyArnHasBeenSet() const
Definition: GetPolicyRequest.h:53