AWS SDK for C++

AWS SDK for C++ Version 1.11.795

Loading...
Searching...
No Matches
CreateUserProfileRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/UserType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataZone {
17namespace Model {
18
22 public:
23 AWS_DATAZONE_API CreateUserProfileRequest() = 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 "CreateUserProfile"; }
30
31 AWS_DATAZONE_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
39 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
40 template <typename DomainIdentifierT = Aws::String>
41 void SetDomainIdentifier(DomainIdentifierT&& value) {
42 m_domainIdentifierHasBeenSet = true;
43 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
44 }
45 template <typename DomainIdentifierT = Aws::String>
46 CreateUserProfileRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
47 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetUserIdentifier() const { return m_userIdentifier; }
57 inline bool UserIdentifierHasBeenSet() const { return m_userIdentifierHasBeenSet; }
58 template <typename UserIdentifierT = Aws::String>
59 void SetUserIdentifier(UserIdentifierT&& value) {
60 m_userIdentifierHasBeenSet = true;
61 m_userIdentifier = std::forward<UserIdentifierT>(value);
62 }
63 template <typename UserIdentifierT = Aws::String>
64 CreateUserProfileRequest& WithUserIdentifier(UserIdentifierT&& value) {
65 SetUserIdentifier(std::forward<UserIdentifierT>(value));
66 return *this;
67 }
69
71
74 inline UserType GetUserType() const { return m_userType; }
75 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
76 inline void SetUserType(UserType value) {
77 m_userTypeHasBeenSet = true;
78 m_userType = value;
79 }
81 SetUserType(value);
82 return *this;
83 }
85
87
90 inline const Aws::String& GetSessionName() const { return m_sessionName; }
91 inline bool SessionNameHasBeenSet() const { return m_sessionNameHasBeenSet; }
92 template <typename SessionNameT = Aws::String>
93 void SetSessionName(SessionNameT&& value) {
94 m_sessionNameHasBeenSet = true;
95 m_sessionName = std::forward<SessionNameT>(value);
96 }
97 template <typename SessionNameT = Aws::String>
99 SetSessionName(std::forward<SessionNameT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetClientToken() const { return m_clientToken; }
110 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
111 template <typename ClientTokenT = Aws::String>
112 void SetClientToken(ClientTokenT&& value) {
113 m_clientTokenHasBeenSet = true;
114 m_clientToken = std::forward<ClientTokenT>(value);
115 }
116 template <typename ClientTokenT = Aws::String>
118 SetClientToken(std::forward<ClientTokenT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_domainIdentifier;
124
125 Aws::String m_userIdentifier;
126
127 UserType m_userType{UserType::NOT_SET};
128
129 Aws::String m_sessionName;
130
132 bool m_domainIdentifierHasBeenSet = false;
133 bool m_userIdentifierHasBeenSet = false;
134 bool m_userTypeHasBeenSet = false;
135 bool m_sessionNameHasBeenSet = false;
136 bool m_clientTokenHasBeenSet = true;
137};
138
139} // namespace Model
140} // namespace DataZone
141} // namespace Aws
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateUserProfileRequest & WithUserType(UserType value)
CreateUserProfileRequest & WithClientToken(ClientTokenT &&value)
CreateUserProfileRequest & WithSessionName(SessionNameT &&value)
CreateUserProfileRequest & WithUserIdentifier(UserIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DATAZONE_API CreateUserProfileRequest()=default
CreateUserProfileRequest & WithDomainIdentifier(DomainIdentifierT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String