AWS SDK for C++  1.9.40
AWS SDK for C++
RemoveUserFromGroupRequest.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 "RemoveUserFromGroup"; }
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& GetGroupName() const{ return m_groupName; }
46 
53  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
54 
61  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
62 
69  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
70 
77  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
78 
85  inline RemoveUserFromGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
86 
93  inline RemoveUserFromGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
94 
101  inline RemoveUserFromGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
102 
103 
110  inline const Aws::String& GetUserName() const{ return m_userName; }
111 
118  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
119 
126  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
127 
134  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
135 
142  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
143 
150  inline RemoveUserFromGroupRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
151 
158  inline RemoveUserFromGroupRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
159 
166  inline RemoveUserFromGroupRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
167 
168  private:
169 
170  Aws::String m_groupName;
171  bool m_groupNameHasBeenSet;
172 
173  Aws::String m_userName;
174  bool m_userNameHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace IAM
179 } // namespace Aws
Aws::IAM::Model::RemoveUserFromGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::Model::RemoveUserFromGroupRequest::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: RemoveUserFromGroupRequest.h:118
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::RemoveUserFromGroupRequest::SetUserName
void SetUserName(const Aws::String &value)
Definition: RemoveUserFromGroupRequest.h:126
Aws::IAM::Model::RemoveUserFromGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RemoveUserFromGroupRequest.h:30
Aws::IAM::Model::RemoveUserFromGroupRequest::WithUserName
RemoveUserFromGroupRequest & WithUserName(const Aws::String &value)
Definition: RemoveUserFromGroupRequest.h:150
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::RemoveUserFromGroupRequest::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: RemoveUserFromGroupRequest.h:61
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::RemoveUserFromGroupRequest::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: RemoveUserFromGroupRequest.h:53
Aws::IAM::Model::RemoveUserFromGroupRequest::WithUserName
RemoveUserFromGroupRequest & WithUserName(Aws::String &&value)
Definition: RemoveUserFromGroupRequest.h:158
Aws::IAM::Model::RemoveUserFromGroupRequest::WithUserName
RemoveUserFromGroupRequest & WithUserName(const char *value)
Definition: RemoveUserFromGroupRequest.h:166
Aws::IAM::Model::RemoveUserFromGroupRequest::GetUserName
const Aws::String & GetUserName() const
Definition: RemoveUserFromGroupRequest.h:110
Aws::IAM::Model::RemoveUserFromGroupRequest::SetGroupName
void SetGroupName(const char *value)
Definition: RemoveUserFromGroupRequest.h:77
AWSString.h
Aws::IAM::Model::RemoveUserFromGroupRequest::WithGroupName
RemoveUserFromGroupRequest & WithGroupName(const Aws::String &value)
Definition: RemoveUserFromGroupRequest.h:85
Aws::IAM::Model::RemoveUserFromGroupRequest::SetUserName
void SetUserName(const char *value)
Definition: RemoveUserFromGroupRequest.h:142
Aws::IAM::Model::RemoveUserFromGroupRequest::WithGroupName
RemoveUserFromGroupRequest & WithGroupName(const char *value)
Definition: RemoveUserFromGroupRequest.h:101
IAM_EXPORTS.h
Aws::IAM::Model::RemoveUserFromGroupRequest::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: RemoveUserFromGroupRequest.h:69
Aws::IAM::Model::RemoveUserFromGroupRequest::GetGroupName
const Aws::String & GetGroupName() const
Definition: RemoveUserFromGroupRequest.h:45
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::RemoveUserFromGroupRequest::SetUserName
void SetUserName(Aws::String &&value)
Definition: RemoveUserFromGroupRequest.h:134
Aws::IAM::Model::RemoveUserFromGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::RemoveUserFromGroupRequest::WithGroupName
RemoveUserFromGroupRequest & WithGroupName(Aws::String &&value)
Definition: RemoveUserFromGroupRequest.h:93
Aws::IAM::Model::RemoveUserFromGroupRequest::RemoveUserFromGroupRequest
RemoveUserFromGroupRequest()
Aws::IAM::Model::RemoveUserFromGroupRequest
Definition: RemoveUserFromGroupRequest.h:22