AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/AppStreamRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appstream/model/MessageAction.h>
11#include <aws/appstream/model/AuthenticationType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace AppStream
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_APPSTREAM_API CreateUserRequest() = 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 "CreateUser"; }
33
34 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
35
37
38
40
46 inline const Aws::String& GetUserName() const { return m_userName; }
47 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
48 template<typename UserNameT = Aws::String>
49 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
50 template<typename UserNameT = Aws::String>
51 CreateUserRequest& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
53
55
63 inline MessageAction GetMessageAction() const { return m_messageAction; }
64 inline bool MessageActionHasBeenSet() const { return m_messageActionHasBeenSet; }
65 inline void SetMessageAction(MessageAction value) { m_messageActionHasBeenSet = true; m_messageAction = value; }
66 inline CreateUserRequest& WithMessageAction(MessageAction value) { SetMessageAction(value); return *this;}
68
70
73 inline const Aws::String& GetFirstName() const { return m_firstName; }
74 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
75 template<typename FirstNameT = Aws::String>
76 void SetFirstName(FirstNameT&& value) { m_firstNameHasBeenSet = true; m_firstName = std::forward<FirstNameT>(value); }
77 template<typename FirstNameT = Aws::String>
78 CreateUserRequest& WithFirstName(FirstNameT&& value) { SetFirstName(std::forward<FirstNameT>(value)); return *this;}
80
82
85 inline const Aws::String& GetLastName() const { return m_lastName; }
86 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
87 template<typename LastNameT = Aws::String>
88 void SetLastName(LastNameT&& value) { m_lastNameHasBeenSet = true; m_lastName = std::forward<LastNameT>(value); }
89 template<typename LastNameT = Aws::String>
90 CreateUserRequest& WithLastName(LastNameT&& value) { SetLastName(std::forward<LastNameT>(value)); return *this;}
92
94
97 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
98 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
99 inline void SetAuthenticationType(AuthenticationType value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
102 private:
103
104 Aws::String m_userName;
105 bool m_userNameHasBeenSet = false;
106
107 MessageAction m_messageAction{MessageAction::NOT_SET};
108 bool m_messageActionHasBeenSet = false;
109
110 Aws::String m_firstName;
111 bool m_firstNameHasBeenSet = false;
112
113 Aws::String m_lastName;
114 bool m_lastNameHasBeenSet = false;
115
117 bool m_authenticationTypeHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace AppStream
122} // 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