AWS SDK for C++  1.9.126
AWS SDK for C++
DetachGroupPolicyRequest.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 "DetachGroupPolicy"; }
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 DetachGroupPolicyRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
92 
100  inline DetachGroupPolicyRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
101 
109  inline DetachGroupPolicyRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
110 
111 
119  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
120 
128  inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
129 
137  inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
138 
146  inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
147 
155  inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
156 
164  inline DetachGroupPolicyRequest& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
165 
173  inline DetachGroupPolicyRequest& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
174 
182  inline DetachGroupPolicyRequest& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
183 
184  private:
185 
186  Aws::String m_groupName;
187  bool m_groupNameHasBeenSet;
188 
189  Aws::String m_policyArn;
190  bool m_policyArnHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace IAM
195 } // namespace Aws
Aws::IAM::Model::DetachGroupPolicyRequest::SetPolicyArn
void SetPolicyArn(const char *value)
Definition: DetachGroupPolicyRequest.h:155
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::DetachGroupPolicyRequest::SetPolicyArn
void SetPolicyArn(Aws::String &&value)
Definition: DetachGroupPolicyRequest.h:146
Aws::IAM::Model::DetachGroupPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DetachGroupPolicyRequest.h:30
Aws::IAM::Model::DetachGroupPolicyRequest::WithPolicyArn
DetachGroupPolicyRequest & WithPolicyArn(const char *value)
Definition: DetachGroupPolicyRequest.h:182
Aws::IAM::Model::DetachGroupPolicyRequest::GetGroupName
const Aws::String & GetGroupName() const
Definition: DetachGroupPolicyRequest.h:46
Aws::IAM::Model::DetachGroupPolicyRequest::SetGroupName
void SetGroupName(const char *value)
Definition: DetachGroupPolicyRequest.h:82
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::DetachGroupPolicyRequest::WithPolicyArn
DetachGroupPolicyRequest & WithPolicyArn(const Aws::String &value)
Definition: DetachGroupPolicyRequest.h:164
Aws::IAM::Model::DetachGroupPolicyRequest::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: DetachGroupPolicyRequest.h:64
Aws::IAM::Model::DetachGroupPolicyRequest::WithGroupName
DetachGroupPolicyRequest & WithGroupName(const Aws::String &value)
Definition: DetachGroupPolicyRequest.h:91
Aws::IAM::Model::DetachGroupPolicyRequest
Definition: DetachGroupPolicyRequest.h:22
Aws::IAM::Model::DetachGroupPolicyRequest::SetPolicyArn
void SetPolicyArn(const Aws::String &value)
Definition: DetachGroupPolicyRequest.h:137
Aws::IAM::Model::DetachGroupPolicyRequest::WithPolicyArn
DetachGroupPolicyRequest & WithPolicyArn(Aws::String &&value)
Definition: DetachGroupPolicyRequest.h:173
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::DetachGroupPolicyRequest::PolicyArnHasBeenSet
bool PolicyArnHasBeenSet() const
Definition: DetachGroupPolicyRequest.h:128
AWSString.h
Aws::IAM::Model::DetachGroupPolicyRequest::WithGroupName
DetachGroupPolicyRequest & WithGroupName(Aws::String &&value)
Definition: DetachGroupPolicyRequest.h:100
Aws::IAM::Model::DetachGroupPolicyRequest::DetachGroupPolicyRequest
DetachGroupPolicyRequest()
IAM_EXPORTS.h
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::DetachGroupPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::Model::DetachGroupPolicyRequest::GetPolicyArn
const Aws::String & GetPolicyArn() const
Definition: DetachGroupPolicyRequest.h:119
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::DetachGroupPolicyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::DetachGroupPolicyRequest::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: DetachGroupPolicyRequest.h:55
Aws::IAM::Model::DetachGroupPolicyRequest::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: DetachGroupPolicyRequest.h:73
Aws::IAM::Model::DetachGroupPolicyRequest::WithGroupName
DetachGroupPolicyRequest & WithGroupName(const char *value)
Definition: DetachGroupPolicyRequest.h:109