AWS SDK for C++  1.9.159
AWS SDK for C++
UpdateGroupRequest.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 "UpdateGroup"; }
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 UpdateGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
92 
100  inline UpdateGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
101 
109  inline UpdateGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
110 
111 
122  inline const Aws::String& GetNewPath() const{ return m_newPath; }
123 
134  inline bool NewPathHasBeenSet() const { return m_newPathHasBeenSet; }
135 
146  inline void SetNewPath(const Aws::String& value) { m_newPathHasBeenSet = true; m_newPath = value; }
147 
158  inline void SetNewPath(Aws::String&& value) { m_newPathHasBeenSet = true; m_newPath = std::move(value); }
159 
170  inline void SetNewPath(const char* value) { m_newPathHasBeenSet = true; m_newPath.assign(value); }
171 
182  inline UpdateGroupRequest& WithNewPath(const Aws::String& value) { SetNewPath(value); return *this;}
183 
194  inline UpdateGroupRequest& WithNewPath(Aws::String&& value) { SetNewPath(std::move(value)); return *this;}
195 
206  inline UpdateGroupRequest& WithNewPath(const char* value) { SetNewPath(value); return *this;}
207 
208 
215  inline const Aws::String& GetNewGroupName() const{ return m_newGroupName; }
216 
223  inline bool NewGroupNameHasBeenSet() const { return m_newGroupNameHasBeenSet; }
224 
231  inline void SetNewGroupName(const Aws::String& value) { m_newGroupNameHasBeenSet = true; m_newGroupName = value; }
232 
239  inline void SetNewGroupName(Aws::String&& value) { m_newGroupNameHasBeenSet = true; m_newGroupName = std::move(value); }
240 
247  inline void SetNewGroupName(const char* value) { m_newGroupNameHasBeenSet = true; m_newGroupName.assign(value); }
248 
255  inline UpdateGroupRequest& WithNewGroupName(const Aws::String& value) { SetNewGroupName(value); return *this;}
256 
263  inline UpdateGroupRequest& WithNewGroupName(Aws::String&& value) { SetNewGroupName(std::move(value)); return *this;}
264 
271  inline UpdateGroupRequest& WithNewGroupName(const char* value) { SetNewGroupName(value); return *this;}
272 
273  private:
274 
275  Aws::String m_groupName;
276  bool m_groupNameHasBeenSet;
277 
278  Aws::String m_newPath;
279  bool m_newPathHasBeenSet;
280 
281  Aws::String m_newGroupName;
282  bool m_newGroupNameHasBeenSet;
283  };
284 
285 } // namespace Model
286 } // namespace IAM
287 } // namespace Aws
Aws::IAM::Model::UpdateGroupRequest::SetGroupName
void SetGroupName(const char *value)
Definition: UpdateGroupRequest.h:82
Aws::IAM::Model::UpdateGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::UpdateGroupRequest::WithNewGroupName
UpdateGroupRequest & WithNewGroupName(const char *value)
Definition: UpdateGroupRequest.h:271
Aws::IAM::Model::UpdateGroupRequest::WithNewPath
UpdateGroupRequest & WithNewPath(const Aws::String &value)
Definition: UpdateGroupRequest.h:182
Aws::IAM::Model::UpdateGroupRequest::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: UpdateGroupRequest.h:73
Aws::IAM::Model::UpdateGroupRequest::WithGroupName
UpdateGroupRequest & WithGroupName(const char *value)
Definition: UpdateGroupRequest.h:109
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::UpdateGroupRequest::WithNewGroupName
UpdateGroupRequest & WithNewGroupName(Aws::String &&value)
Definition: UpdateGroupRequest.h:263
Aws::IAM::Model::UpdateGroupRequest::SetNewPath
void SetNewPath(const Aws::String &value)
Definition: UpdateGroupRequest.h:146
Aws::IAM::Model::UpdateGroupRequest::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: UpdateGroupRequest.h:55
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::UpdateGroupRequest::GetGroupName
const Aws::String & GetGroupName() const
Definition: UpdateGroupRequest.h:46
Aws::IAM::Model::UpdateGroupRequest::NewGroupNameHasBeenSet
bool NewGroupNameHasBeenSet() const
Definition: UpdateGroupRequest.h:223
Aws::IAM::Model::UpdateGroupRequest::WithNewGroupName
UpdateGroupRequest & WithNewGroupName(const Aws::String &value)
Definition: UpdateGroupRequest.h:255
Aws::IAM::Model::UpdateGroupRequest::SetNewGroupName
void SetNewGroupName(Aws::String &&value)
Definition: UpdateGroupRequest.h:239
AWSString.h
Aws::IAM::Model::UpdateGroupRequest::GetNewPath
const Aws::String & GetNewPath() const
Definition: UpdateGroupRequest.h:122
Aws::IAM::Model::UpdateGroupRequest::SetNewPath
void SetNewPath(const char *value)
Definition: UpdateGroupRequest.h:170
Aws::IAM::Model::UpdateGroupRequest::UpdateGroupRequest
UpdateGroupRequest()
Aws::IAM::Model::UpdateGroupRequest::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: UpdateGroupRequest.h:64
IAM_EXPORTS.h
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::UpdateGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateGroupRequest.h:30
Aws::IAM::Model::UpdateGroupRequest::GetNewGroupName
const Aws::String & GetNewGroupName() const
Definition: UpdateGroupRequest.h:215
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::UpdateGroupRequest::SetNewPath
void SetNewPath(Aws::String &&value)
Definition: UpdateGroupRequest.h:158
Aws::IAM::Model::UpdateGroupRequest::WithNewPath
UpdateGroupRequest & WithNewPath(const char *value)
Definition: UpdateGroupRequest.h:206
Aws::IAM::Model::UpdateGroupRequest::SetNewGroupName
void SetNewGroupName(const char *value)
Definition: UpdateGroupRequest.h:247
Aws::IAM::Model::UpdateGroupRequest::NewPathHasBeenSet
bool NewPathHasBeenSet() const
Definition: UpdateGroupRequest.h:134
Aws::IAM::Model::UpdateGroupRequest::SetNewGroupName
void SetNewGroupName(const Aws::String &value)
Definition: UpdateGroupRequest.h:231
Aws::IAM::Model::UpdateGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::Model::UpdateGroupRequest::WithGroupName
UpdateGroupRequest & WithGroupName(Aws::String &&value)
Definition: UpdateGroupRequest.h:100
Aws::IAM::Model::UpdateGroupRequest::WithNewPath
UpdateGroupRequest & WithNewPath(Aws::String &&value)
Definition: UpdateGroupRequest.h:194
Aws::IAM::Model::UpdateGroupRequest
Definition: UpdateGroupRequest.h:22
Aws::IAM::Model::UpdateGroupRequest::WithGroupName
UpdateGroupRequest & WithGroupName(const Aws::String &value)
Definition: UpdateGroupRequest.h:91