AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
49 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
50 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
51 inline CreateUserRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
52 inline CreateUserRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
53 inline CreateUserRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
55
57
65 inline const MessageAction& GetMessageAction() const{ return m_messageAction; }
66 inline bool MessageActionHasBeenSet() const { return m_messageActionHasBeenSet; }
67 inline void SetMessageAction(const MessageAction& value) { m_messageActionHasBeenSet = true; m_messageAction = value; }
68 inline void SetMessageAction(MessageAction&& value) { m_messageActionHasBeenSet = true; m_messageAction = std::move(value); }
69 inline CreateUserRequest& WithMessageAction(const MessageAction& value) { SetMessageAction(value); return *this;}
70 inline CreateUserRequest& WithMessageAction(MessageAction&& value) { SetMessageAction(std::move(value)); return *this;}
72
74
77 inline const Aws::String& GetFirstName() const{ return m_firstName; }
78 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
79 inline void SetFirstName(const Aws::String& value) { m_firstNameHasBeenSet = true; m_firstName = value; }
80 inline void SetFirstName(Aws::String&& value) { m_firstNameHasBeenSet = true; m_firstName = std::move(value); }
81 inline void SetFirstName(const char* value) { m_firstNameHasBeenSet = true; m_firstName.assign(value); }
82 inline CreateUserRequest& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;}
83 inline CreateUserRequest& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;}
84 inline CreateUserRequest& WithFirstName(const char* value) { SetFirstName(value); return *this;}
86
88
91 inline const Aws::String& GetLastName() const{ return m_lastName; }
92 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
93 inline void SetLastName(const Aws::String& value) { m_lastNameHasBeenSet = true; m_lastName = value; }
94 inline void SetLastName(Aws::String&& value) { m_lastNameHasBeenSet = true; m_lastName = std::move(value); }
95 inline void SetLastName(const char* value) { m_lastNameHasBeenSet = true; m_lastName.assign(value); }
96 inline CreateUserRequest& WithLastName(const Aws::String& value) { SetLastName(value); return *this;}
97 inline CreateUserRequest& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;}
98 inline CreateUserRequest& WithLastName(const char* value) { SetLastName(value); return *this;}
100
102
105 inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; }
106 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
107 inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
108 inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); }
110 inline CreateUserRequest& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;}
112 private:
113
114 Aws::String m_userName;
115 bool m_userNameHasBeenSet = false;
116
117 MessageAction m_messageAction;
118 bool m_messageActionHasBeenSet = false;
119
120 Aws::String m_firstName;
121 bool m_firstNameHasBeenSet = false;
122
123 Aws::String m_lastName;
124 bool m_lastNameHasBeenSet = false;
125
126 AuthenticationType m_authenticationType;
127 bool m_authenticationTypeHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace AppStream
132} // namespace Aws
CreateUserRequest & WithMessageAction(const MessageAction &value)
void SetAuthenticationType(AuthenticationType &&value)
const AuthenticationType & GetAuthenticationType() const
CreateUserRequest & WithFirstName(const Aws::String &value)
const Aws::String & GetUserName() const
void SetMessageAction(const MessageAction &value)
const Aws::String & GetFirstName() const
CreateUserRequest & WithAuthenticationType(const AuthenticationType &value)
CreateUserRequest & WithUserName(Aws::String &&value)
void SetLastName(const Aws::String &value)
void SetAuthenticationType(const AuthenticationType &value)
void SetFirstName(const Aws::String &value)
CreateUserRequest & WithUserName(const char *value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
void SetMessageAction(MessageAction &&value)
CreateUserRequest & WithLastName(const Aws::String &value)
CreateUserRequest & WithAuthenticationType(AuthenticationType &&value)
virtual const char * GetServiceRequestName() const override
const MessageAction & GetMessageAction() const
CreateUserRequest & WithLastName(const char *value)
CreateUserRequest & WithUserName(const Aws::String &value)
CreateUserRequest & WithFirstName(Aws::String &&value)
CreateUserRequest & WithLastName(Aws::String &&value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetLastName() const
void SetUserName(const Aws::String &value)
CreateUserRequest & WithFirstName(const char *value)
CreateUserRequest & WithMessageAction(MessageAction &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String