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/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qbusiness/model/UserAlias.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace QBusiness
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_QBUSINESS_API CreateUserRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
34
35 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
44 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
45 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
46 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
47 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
48 inline CreateUserRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
49 inline CreateUserRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
50 inline CreateUserRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
52
54
57 inline const Aws::String& GetUserId() const{ return m_userId; }
58 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
59 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
60 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
61 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
62 inline CreateUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
63 inline CreateUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
64 inline CreateUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
66
68
71 inline const Aws::Vector<UserAlias>& GetUserAliases() const{ return m_userAliases; }
72 inline bool UserAliasesHasBeenSet() const { return m_userAliasesHasBeenSet; }
73 inline void SetUserAliases(const Aws::Vector<UserAlias>& value) { m_userAliasesHasBeenSet = true; m_userAliases = value; }
74 inline void SetUserAliases(Aws::Vector<UserAlias>&& value) { m_userAliasesHasBeenSet = true; m_userAliases = std::move(value); }
75 inline CreateUserRequest& WithUserAliases(const Aws::Vector<UserAlias>& value) { SetUserAliases(value); return *this;}
76 inline CreateUserRequest& WithUserAliases(Aws::Vector<UserAlias>&& value) { SetUserAliases(std::move(value)); return *this;}
77 inline CreateUserRequest& AddUserAliases(const UserAlias& value) { m_userAliasesHasBeenSet = true; m_userAliases.push_back(value); return *this; }
78 inline CreateUserRequest& AddUserAliases(UserAlias&& value) { m_userAliasesHasBeenSet = true; m_userAliases.push_back(std::move(value)); return *this; }
80
82
86 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
87 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
88 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
89 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
90 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
91 inline CreateUserRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
92 inline CreateUserRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
93 inline CreateUserRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
95 private:
96
97 Aws::String m_applicationId;
98 bool m_applicationIdHasBeenSet = false;
99
100 Aws::String m_userId;
101 bool m_userIdHasBeenSet = false;
102
103 Aws::Vector<UserAlias> m_userAliases;
104 bool m_userAliasesHasBeenSet = false;
105
106 Aws::String m_clientToken;
107 bool m_clientTokenHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace QBusiness
112} // namespace Aws
AWS_QBUSINESS_API Aws::String SerializePayload() const override
CreateUserRequest & WithApplicationId(const char *value)
const Aws::String & GetClientToken() const
CreateUserRequest & WithUserId(const char *value)
const Aws::Vector< UserAlias > & GetUserAliases() const
void SetClientToken(const Aws::String &value)
void SetUserId(const Aws::String &value)
CreateUserRequest & WithApplicationId(const Aws::String &value)
CreateUserRequest & WithClientToken(const char *value)
CreateUserRequest & WithUserId(const Aws::String &value)
void SetApplicationId(const Aws::String &value)
void SetUserAliases(const Aws::Vector< UserAlias > &value)
void SetUserAliases(Aws::Vector< UserAlias > &&value)
CreateUserRequest & WithUserAliases(const Aws::Vector< UserAlias > &value)
CreateUserRequest & WithClientToken(Aws::String &&value)
CreateUserRequest & WithApplicationId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateUserRequest & WithUserAliases(Aws::Vector< UserAlias > &&value)
CreateUserRequest & WithClientToken(const Aws::String &value)
const Aws::String & GetApplicationId() const
CreateUserRequest & WithUserId(Aws::String &&value)
CreateUserRequest & AddUserAliases(UserAlias &&value)
CreateUserRequest & AddUserAliases(const UserAlias &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector