AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/appstream/model/AuthenticationType.h>
10#include <aws/appstream/model/MessageAction.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AppStream {
17namespace Model {
18
22 public:
23 AWS_APPSTREAM_API CreateUserRequest() = 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 "CreateUser"; }
30
31 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
32
34
36
42 inline const Aws::String& GetUserName() const { return m_userName; }
43 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
44 template <typename UserNameT = Aws::String>
45 void SetUserName(UserNameT&& value) {
46 m_userNameHasBeenSet = true;
47 m_userName = std::forward<UserNameT>(value);
48 }
49 template <typename UserNameT = Aws::String>
50 CreateUserRequest& WithUserName(UserNameT&& value) {
51 SetUserName(std::forward<UserNameT>(value));
52 return *this;
53 }
55
57
65 inline MessageAction GetMessageAction() const { return m_messageAction; }
66 inline bool MessageActionHasBeenSet() const { return m_messageActionHasBeenSet; }
67 inline void SetMessageAction(MessageAction value) {
68 m_messageActionHasBeenSet = true;
69 m_messageAction = value;
70 }
72 SetMessageAction(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetFirstName() const { return m_firstName; }
82 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
83 template <typename FirstNameT = Aws::String>
84 void SetFirstName(FirstNameT&& value) {
85 m_firstNameHasBeenSet = true;
86 m_firstName = std::forward<FirstNameT>(value);
87 }
88 template <typename FirstNameT = Aws::String>
89 CreateUserRequest& WithFirstName(FirstNameT&& value) {
90 SetFirstName(std::forward<FirstNameT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetLastName() const { return m_lastName; }
100 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
101 template <typename LastNameT = Aws::String>
102 void SetLastName(LastNameT&& value) {
103 m_lastNameHasBeenSet = true;
104 m_lastName = std::forward<LastNameT>(value);
105 }
106 template <typename LastNameT = Aws::String>
107 CreateUserRequest& WithLastName(LastNameT&& value) {
108 SetLastName(std::forward<LastNameT>(value));
109 return *this;
110 }
112
114
117 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
118 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
120 m_authenticationTypeHasBeenSet = true;
121 m_authenticationType = value;
122 }
125 return *this;
126 }
128 private:
129 Aws::String m_userName;
130 bool m_userNameHasBeenSet = false;
131
132 MessageAction m_messageAction{MessageAction::NOT_SET};
133 bool m_messageActionHasBeenSet = false;
134
135 Aws::String m_firstName;
136 bool m_firstNameHasBeenSet = false;
137
138 Aws::String m_lastName;
139 bool m_lastNameHasBeenSet = false;
140
142 bool m_authenticationTypeHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace AppStream
147} // namespace Aws
AWS_APPSTREAM_API CreateUserRequest()=default
const Aws::String & GetUserName() const
const Aws::String & GetFirstName() const
CreateUserRequest & WithMessageAction(MessageAction value)
CreateUserRequest & WithLastName(LastNameT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
CreateUserRequest & WithAuthenticationType(AuthenticationType value)
CreateUserRequest & WithUserName(UserNameT &&value)
void SetAuthenticationType(AuthenticationType value)
CreateUserRequest & WithFirstName(FirstNameT &&value)
AuthenticationType GetAuthenticationType() const
virtual const char * GetServiceRequestName() const override
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetLastName() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String