AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateKxUserRequest.h
1
6#pragma once
7#include <aws/finspace/Finspace_EXPORTS.h>
8#include <aws/finspace/FinspaceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace finspace
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_FINSPACE_API CreateKxUserRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateKxUser"; }
33
34 AWS_FINSPACE_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
43 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
44 template<typename EnvironmentIdT = Aws::String>
45 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
46 template<typename EnvironmentIdT = Aws::String>
47 CreateKxUserRequest& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetUserName() const { return m_userName; }
55 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
56 template<typename UserNameT = Aws::String>
57 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
58 template<typename UserNameT = Aws::String>
59 CreateKxUserRequest& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetIamRole() const { return m_iamRole; }
67 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
68 template<typename IamRoleT = Aws::String>
69 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::forward<IamRoleT>(value); }
70 template<typename IamRoleT = Aws::String>
71 CreateKxUserRequest& WithIamRole(IamRoleT&& value) { SetIamRole(std::forward<IamRoleT>(value)); return *this;}
73
75
79 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
83 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 CreateKxUserRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
85 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
86 CreateKxUserRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
87 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
88 }
90
92
95 inline const Aws::String& GetClientToken() const { return m_clientToken; }
96 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
97 template<typename ClientTokenT = Aws::String>
98 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
99 template<typename ClientTokenT = Aws::String>
100 CreateKxUserRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
102 private:
103
104 Aws::String m_environmentId;
105 bool m_environmentIdHasBeenSet = false;
106
107 Aws::String m_userName;
108 bool m_userNameHasBeenSet = false;
109
110 Aws::String m_iamRole;
111 bool m_iamRoleHasBeenSet = false;
112
114 bool m_tagsHasBeenSet = false;
115
117 bool m_clientTokenHasBeenSet = true;
118 };
119
120} // namespace Model
121} // namespace finspace
122} // 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