AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/chime/ChimeRequest.h>
8#include <aws/chime/Chime_EXPORTS.h>
9#include <aws/chime/model/UserType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Chime {
16namespace Model {
17
21 public:
22 AWS_CHIME_API CreateUserRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
29
30 AWS_CHIME_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetAccountId() const { return m_accountId; }
37 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
38 template <typename AccountIdT = Aws::String>
39 void SetAccountId(AccountIdT&& value) {
40 m_accountIdHasBeenSet = true;
41 m_accountId = std::forward<AccountIdT>(value);
42 }
43 template <typename AccountIdT = Aws::String>
44 CreateUserRequest& WithAccountId(AccountIdT&& value) {
45 SetAccountId(std::forward<AccountIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetUsername() const { return m_username; }
55 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
56 template <typename UsernameT = Aws::String>
57 void SetUsername(UsernameT&& value) {
58 m_usernameHasBeenSet = true;
59 m_username = std::forward<UsernameT>(value);
60 }
61 template <typename UsernameT = Aws::String>
62 CreateUserRequest& WithUsername(UsernameT&& value) {
63 SetUsername(std::forward<UsernameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetEmail() const { return m_email; }
73 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
74 template <typename EmailT = Aws::String>
75 void SetEmail(EmailT&& value) {
76 m_emailHasBeenSet = true;
77 m_email = std::forward<EmailT>(value);
78 }
79 template <typename EmailT = Aws::String>
80 CreateUserRequest& WithEmail(EmailT&& value) {
81 SetEmail(std::forward<EmailT>(value));
82 return *this;
83 }
85
87
90 inline UserType GetUserType() const { return m_userType; }
91 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
92 inline void SetUserType(UserType value) {
93 m_userTypeHasBeenSet = true;
94 m_userType = value;
95 }
97 SetUserType(value);
98 return *this;
99 }
101 private:
102 Aws::String m_accountId;
103
104 Aws::String m_username;
105
106 Aws::String m_email;
107
108 UserType m_userType{UserType::NOT_SET};
109 bool m_accountIdHasBeenSet = false;
110 bool m_usernameHasBeenSet = false;
111 bool m_emailHasBeenSet = false;
112 bool m_userTypeHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace Chime
117} // namespace Aws
CreateUserRequest & WithEmail(EmailT &&value)
AWS_CHIME_API CreateUserRequest()=default
AWS_CHIME_API Aws::String SerializePayload() const override
void SetAccountId(AccountIdT &&value)
const Aws::String & GetAccountId() const
const Aws::String & GetUsername() const
const Aws::String & GetEmail() const
CreateUserRequest & WithUsername(UsernameT &&value)
CreateUserRequest & WithUserType(UserType value)
CreateUserRequest & WithAccountId(AccountIdT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String