AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/ChimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/chime/model/UserType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Chime
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CHIME_API CreateUserRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
32
33 AWS_CHIME_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template<typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
44 template<typename AccountIdT = Aws::String>
45 CreateUserRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetUsername() const { return m_username; }
53 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
54 template<typename UsernameT = Aws::String>
55 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
56 template<typename UsernameT = Aws::String>
57 CreateUserRequest& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetEmail() const { return m_email; }
65 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
66 template<typename EmailT = Aws::String>
67 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
68 template<typename EmailT = Aws::String>
69 CreateUserRequest& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
71
73
76 inline UserType GetUserType() const { return m_userType; }
77 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
78 inline void SetUserType(UserType value) { m_userTypeHasBeenSet = true; m_userType = value; }
79 inline CreateUserRequest& WithUserType(UserType value) { SetUserType(value); return *this;}
81 private:
82
83 Aws::String m_accountId;
84 bool m_accountIdHasBeenSet = false;
85
86 Aws::String m_username;
87 bool m_usernameHasBeenSet = false;
88
89 Aws::String m_email;
90 bool m_emailHasBeenSet = false;
91
92 UserType m_userType{UserType::NOT_SET};
93 bool m_userTypeHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Chime
98} // 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