AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RemoveUserFromGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/iam/IAM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace IAM {
15namespace Model {
16
20 public:
21 AWS_IAM_API RemoveUserFromGroupRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "RemoveUserFromGroup"; }
28
29 AWS_IAM_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
42 inline const Aws::String& GetGroupName() const { return m_groupName; }
43 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
44 template <typename GroupNameT = Aws::String>
45 void SetGroupName(GroupNameT&& value) {
46 m_groupNameHasBeenSet = true;
47 m_groupName = std::forward<GroupNameT>(value);
48 }
49 template <typename GroupNameT = Aws::String>
51 SetGroupName(std::forward<GroupNameT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetUserName() const { return m_userName; }
64 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
65 template <typename UserNameT = Aws::String>
66 void SetUserName(UserNameT&& value) {
67 m_userNameHasBeenSet = true;
68 m_userName = std::forward<UserNameT>(value);
69 }
70 template <typename UserNameT = Aws::String>
72 SetUserName(std::forward<UserNameT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_groupName;
78
79 Aws::String m_userName;
80 bool m_groupNameHasBeenSet = false;
81 bool m_userNameHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace IAM
86} // namespace Aws
RemoveUserFromGroupRequest & WithUserName(UserNameT &&value)
AWS_IAM_API Aws::String SerializePayload() const override
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
RemoveUserFromGroupRequest & WithGroupName(GroupNameT &&value)
AWS_IAM_API RemoveUserFromGroupRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String