AWS SDK for C++  1.9.40
AWS SDK for C++
GetGroupPolicyRequest.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 "GetGroupPolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
46  inline const Aws::String& GetGroupName() const{ return m_groupName; }
47 
55  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
56 
64  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
65 
73  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
74 
82  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
83 
91  inline GetGroupPolicyRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
92 
100  inline GetGroupPolicyRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
101 
109  inline GetGroupPolicyRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
110 
111 
118  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
119 
126  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
127 
134  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
135 
142  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
143 
150  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
151 
158  inline GetGroupPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
159 
166  inline GetGroupPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
167 
174  inline GetGroupPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
175 
176  private:
177 
178  Aws::String m_groupName;
179  bool m_groupNameHasBeenSet;
180 
181  Aws::String m_policyName;
182  bool m_policyNameHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace IAM
187 } // namespace Aws
Aws::IAM::Model::GetGroupPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetGroupPolicyRequest.h:30
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::GetGroupPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::Model::GetGroupPolicyRequest::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: GetGroupPolicyRequest.h:118
Aws::IAM::Model::GetGroupPolicyRequest::WithPolicyName
GetGroupPolicyRequest & WithPolicyName(const Aws::String &value)
Definition: GetGroupPolicyRequest.h:158
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::GetGroupPolicyRequest::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: GetGroupPolicyRequest.h:142
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::GetGroupPolicyRequest::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: GetGroupPolicyRequest.h:55
Aws::IAM::Model::GetGroupPolicyRequest::SetGroupName
void SetGroupName(const char *value)
Definition: GetGroupPolicyRequest.h:82
Aws::IAM::Model::GetGroupPolicyRequest::GetGroupName
const Aws::String & GetGroupName() const
Definition: GetGroupPolicyRequest.h:46
Aws::IAM::Model::GetGroupPolicyRequest::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: GetGroupPolicyRequest.h:73
AWSString.h
Aws::IAM::Model::GetGroupPolicyRequest::WithPolicyName
GetGroupPolicyRequest & WithPolicyName(Aws::String &&value)
Definition: GetGroupPolicyRequest.h:166
Aws::IAM::Model::GetGroupPolicyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::GetGroupPolicyRequest::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: GetGroupPolicyRequest.h:126
IAM_EXPORTS.h
Aws::IAM::Model::GetGroupPolicyRequest::GetGroupPolicyRequest
GetGroupPolicyRequest()
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::GetGroupPolicyRequest::SetPolicyName
void SetPolicyName(const char *value)
Definition: GetGroupPolicyRequest.h:150
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::GetGroupPolicyRequest::WithGroupName
GetGroupPolicyRequest & WithGroupName(Aws::String &&value)
Definition: GetGroupPolicyRequest.h:100
Aws::IAM::Model::GetGroupPolicyRequest::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: GetGroupPolicyRequest.h:134
Aws::IAM::Model::GetGroupPolicyRequest
Definition: GetGroupPolicyRequest.h:22
Aws::IAM::Model::GetGroupPolicyRequest::WithGroupName
GetGroupPolicyRequest & WithGroupName(const char *value)
Definition: GetGroupPolicyRequest.h:109
Aws::IAM::Model::GetGroupPolicyRequest::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: GetGroupPolicyRequest.h:64
Aws::IAM::Model::GetGroupPolicyRequest::WithGroupName
GetGroupPolicyRequest & WithGroupName(const Aws::String &value)
Definition: GetGroupPolicyRequest.h:91
Aws::IAM::Model::GetGroupPolicyRequest::WithPolicyName
GetGroupPolicyRequest & WithPolicyName(const char *value)
Definition: GetGroupPolicyRequest.h:174