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/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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
43 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
44 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
45 inline CreateUserRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
46 inline CreateUserRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
47 inline CreateUserRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
49
51
54 inline const Aws::String& GetUsername() const{ return m_username; }
55 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
56 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
57 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
58 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
59 inline CreateUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
60 inline CreateUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
61 inline CreateUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
63
65
68 inline const Aws::String& GetEmail() const{ return m_email; }
69 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
70 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
71 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
72 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
73 inline CreateUserRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
74 inline CreateUserRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
75 inline CreateUserRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
77
79
82 inline const UserType& GetUserType() const{ return m_userType; }
83 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
84 inline void SetUserType(const UserType& value) { m_userTypeHasBeenSet = true; m_userType = value; }
85 inline void SetUserType(UserType&& value) { m_userTypeHasBeenSet = true; m_userType = std::move(value); }
86 inline CreateUserRequest& WithUserType(const UserType& value) { SetUserType(value); return *this;}
87 inline CreateUserRequest& WithUserType(UserType&& value) { SetUserType(std::move(value)); return *this;}
89 private:
90
91 Aws::String m_accountId;
92 bool m_accountIdHasBeenSet = false;
93
94 Aws::String m_username;
95 bool m_usernameHasBeenSet = false;
96
97 Aws::String m_email;
98 bool m_emailHasBeenSet = false;
99
100 UserType m_userType;
101 bool m_userTypeHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Chime
106} // namespace Aws
void SetAccountId(Aws::String &&value)
CreateUserRequest & WithAccountId(const char *value)
void SetUserType(const UserType &value)
CreateUserRequest & WithAccountId(const Aws::String &value)
void SetUsername(Aws::String &&value)
CreateUserRequest & WithUserType(UserType &&value)
void SetAccountId(const Aws::String &value)
CreateUserRequest & WithUsername(const char *value)
AWS_CHIME_API Aws::String SerializePayload() const override
CreateUserRequest & WithEmail(const Aws::String &value)
CreateUserRequest & WithUsername(const Aws::String &value)
void SetEmail(const Aws::String &value)
CreateUserRequest & WithUserType(const UserType &value)
const Aws::String & GetAccountId() const
const Aws::String & GetUsername() const
CreateUserRequest & WithUsername(Aws::String &&value)
const Aws::String & GetEmail() const
CreateUserRequest & WithEmail(const char *value)
CreateUserRequest & WithAccountId(Aws::String &&value)
CreateUserRequest & WithEmail(Aws::String &&value)
void SetUsername(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String