AWS SDK for C++  1.9.40
AWS SDK for C++
CreateGroupRequest.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 "CreateGroup"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
51  inline const Aws::String& GetPath() const{ return m_path; }
52 
65  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
66 
79  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
80 
93  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
94 
107  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
108 
121  inline CreateGroupRequest& WithPath(const Aws::String& value) { SetPath(value); return *this;}
122 
135  inline CreateGroupRequest& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
136 
149  inline CreateGroupRequest& WithPath(const char* value) { SetPath(value); return *this;}
150 
151 
158  inline const Aws::String& GetGroupName() const{ return m_groupName; }
159 
166  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
167 
174  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
175 
182  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
183 
190  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
191 
198  inline CreateGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
199 
206  inline CreateGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
207 
214  inline CreateGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
215 
216  private:
217 
218  Aws::String m_path;
219  bool m_pathHasBeenSet;
220 
221  Aws::String m_groupName;
222  bool m_groupNameHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace IAM
227 } // namespace Aws
Aws::IAM::Model::CreateGroupRequest::SetPath
void SetPath(const Aws::String &value)
Definition: CreateGroupRequest.h:79
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::CreateGroupRequest::SetGroupName
void SetGroupName(const char *value)
Definition: CreateGroupRequest.h:190
Aws::IAM::Model::CreateGroupRequest::CreateGroupRequest
CreateGroupRequest()
Aws::IAM::Model::CreateGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::Model::CreateGroupRequest::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: CreateGroupRequest.h:174
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::CreateGroupRequest::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: CreateGroupRequest.h:182
Aws::IAM::Model::CreateGroupRequest::SetPath
void SetPath(const char *value)
Definition: CreateGroupRequest.h:107
Aws::IAM::Model::CreateGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::CreateGroupRequest::WithGroupName
CreateGroupRequest & WithGroupName(Aws::String &&value)
Definition: CreateGroupRequest.h:206
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::CreateGroupRequest
Definition: CreateGroupRequest.h:22
Aws::IAM::Model::CreateGroupRequest::SetPath
void SetPath(Aws::String &&value)
Definition: CreateGroupRequest.h:93
Aws::IAM::Model::CreateGroupRequest::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: CreateGroupRequest.h:166
AWSString.h
Aws::IAM::Model::CreateGroupRequest::GetGroupName
const Aws::String & GetGroupName() const
Definition: CreateGroupRequest.h:158
Aws::IAM::Model::CreateGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateGroupRequest.h:30
IAM_EXPORTS.h
IAMRequest.h
Aws::IAM::Model::CreateGroupRequest::WithGroupName
CreateGroupRequest & WithGroupName(const Aws::String &value)
Definition: CreateGroupRequest.h:198
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::CreateGroupRequest::WithPath
CreateGroupRequest & WithPath(const char *value)
Definition: CreateGroupRequest.h:149
Aws::IAM::Model::CreateGroupRequest::WithPath
CreateGroupRequest & WithPath(Aws::String &&value)
Definition: CreateGroupRequest.h:135
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::CreateGroupRequest::GetPath
const Aws::String & GetPath() const
Definition: CreateGroupRequest.h:51
Aws::IAM::Model::CreateGroupRequest::WithGroupName
CreateGroupRequest & WithGroupName(const char *value)
Definition: CreateGroupRequest.h:214
Aws::IAM::Model::CreateGroupRequest::PathHasBeenSet
bool PathHasBeenSet() const
Definition: CreateGroupRequest.h:65
Aws::IAM::Model::CreateGroupRequest::WithPath
CreateGroupRequest & WithPath(const Aws::String &value)
Definition: CreateGroupRequest.h:121