AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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
91 inline const Aws::String& GetClientToken() const { return m_clientToken; }
92 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
93 template <typename ClientTokenT = Aws::String>
94 void SetClientToken(ClientTokenT&& value) {
95 m_clientTokenHasBeenSet = true;
96 m_clientToken = std::forward<ClientTokenT>(value);
97 }
98 template <typename ClientTokenT = Aws::String>
100 SetClientToken(std::forward<ClientTokenT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_domainIdentifier;
106
107 Aws::String m_userIdentifier;
108
109 UserType m_userType{UserType::NOT_SET};
110
112 bool m_domainIdentifierHasBeenSet = false;
113 bool m_userIdentifierHasBeenSet = false;
114 bool m_userTypeHasBeenSet = false;
115 bool m_clientTokenHasBeenSet = true;
116};
117
118} // namespace Model
119} // namespace DataZone
120} // namespace Aws
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateUserProfileRequest & WithUserType(UserType value)
CreateUserProfileRequest & WithClientToken(ClientTokenT &&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