AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateKxUserRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/finspace/FinspaceRequest.h>
11#include <aws/finspace/Finspace_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace finspace {
17namespace Model {
18
22 public:
23 AWS_FINSPACE_API CreateKxUserRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateKxUser"; }
30
31 AWS_FINSPACE_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
39 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
40 template <typename EnvironmentIdT = Aws::String>
41 void SetEnvironmentId(EnvironmentIdT&& value) {
42 m_environmentIdHasBeenSet = true;
43 m_environmentId = std::forward<EnvironmentIdT>(value);
44 }
45 template <typename EnvironmentIdT = Aws::String>
46 CreateKxUserRequest& WithEnvironmentId(EnvironmentIdT&& value) {
47 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetUserName() const { return m_userName; }
57 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
58 template <typename UserNameT = Aws::String>
59 void SetUserName(UserNameT&& value) {
60 m_userNameHasBeenSet = true;
61 m_userName = std::forward<UserNameT>(value);
62 }
63 template <typename UserNameT = Aws::String>
64 CreateKxUserRequest& WithUserName(UserNameT&& value) {
65 SetUserName(std::forward<UserNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetIamRole() const { return m_iamRole; }
75 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
76 template <typename IamRoleT = Aws::String>
77 void SetIamRole(IamRoleT&& value) {
78 m_iamRoleHasBeenSet = true;
79 m_iamRole = std::forward<IamRoleT>(value);
80 }
81 template <typename IamRoleT = Aws::String>
82 CreateKxUserRequest& WithIamRole(IamRoleT&& value) {
83 SetIamRole(std::forward<IamRoleT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 CreateKxUserRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetClientToken() const { return m_clientToken; }
118 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
119 template <typename ClientTokenT = Aws::String>
120 void SetClientToken(ClientTokenT&& value) {
121 m_clientTokenHasBeenSet = true;
122 m_clientToken = std::forward<ClientTokenT>(value);
123 }
124 template <typename ClientTokenT = Aws::String>
125 CreateKxUserRequest& WithClientToken(ClientTokenT&& value) {
126 SetClientToken(std::forward<ClientTokenT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_environmentId;
132
133 Aws::String m_userName;
134
135 Aws::String m_iamRole;
136
138
140 bool m_environmentIdHasBeenSet = false;
141 bool m_userNameHasBeenSet = false;
142 bool m_iamRoleHasBeenSet = false;
143 bool m_tagsHasBeenSet = false;
144 bool m_clientTokenHasBeenSet = true;
145};
146
147} // namespace Model
148} // namespace finspace
149} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateKxUserRequest & WithEnvironmentId(EnvironmentIdT &&value)
AWS_FINSPACE_API CreateKxUserRequest()=default
CreateKxUserRequest & WithTags(TagsT &&value)
void SetEnvironmentId(EnvironmentIdT &&value)
AWS_FINSPACE_API Aws::String SerializePayload() const override
CreateKxUserRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
CreateKxUserRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateKxUserRequest & WithUserName(UserNameT &&value)
CreateKxUserRequest & WithIamRole(IamRoleT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String