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/mq/MQ_EXPORTS.h>
8#include <aws/mq/MQRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MQ
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_MQ_API CreateUserRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
35
36 AWS_MQ_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetBrokerId() const{ return m_brokerId; }
44 inline bool BrokerIdHasBeenSet() const { return m_brokerIdHasBeenSet; }
45 inline void SetBrokerId(const Aws::String& value) { m_brokerIdHasBeenSet = true; m_brokerId = value; }
46 inline void SetBrokerId(Aws::String&& value) { m_brokerIdHasBeenSet = true; m_brokerId = std::move(value); }
47 inline void SetBrokerId(const char* value) { m_brokerIdHasBeenSet = true; m_brokerId.assign(value); }
48 inline CreateUserRequest& WithBrokerId(const Aws::String& value) { SetBrokerId(value); return *this;}
49 inline CreateUserRequest& WithBrokerId(Aws::String&& value) { SetBrokerId(std::move(value)); return *this;}
50 inline CreateUserRequest& WithBrokerId(const char* value) { SetBrokerId(value); return *this;}
52
54
57 inline bool GetConsoleAccess() const{ return m_consoleAccess; }
58 inline bool ConsoleAccessHasBeenSet() const { return m_consoleAccessHasBeenSet; }
59 inline void SetConsoleAccess(bool value) { m_consoleAccessHasBeenSet = true; m_consoleAccess = value; }
60 inline CreateUserRequest& WithConsoleAccess(bool value) { SetConsoleAccess(value); return *this;}
62
64
69 inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
70 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
71 inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
72 inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
73 inline CreateUserRequest& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
74 inline CreateUserRequest& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
75 inline CreateUserRequest& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
76 inline CreateUserRequest& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
77 inline CreateUserRequest& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
79
81
86 inline const Aws::String& GetPassword() const{ return m_password; }
87 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
88 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
89 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
90 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
91 inline CreateUserRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
92 inline CreateUserRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
93 inline CreateUserRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
95
97
102 inline const Aws::String& GetUsername() const{ return m_username; }
103 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
104 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
105 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
106 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
107 inline CreateUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
108 inline CreateUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
109 inline CreateUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
111
113
116 inline bool GetReplicationUser() const{ return m_replicationUser; }
117 inline bool ReplicationUserHasBeenSet() const { return m_replicationUserHasBeenSet; }
118 inline void SetReplicationUser(bool value) { m_replicationUserHasBeenSet = true; m_replicationUser = value; }
119 inline CreateUserRequest& WithReplicationUser(bool value) { SetReplicationUser(value); return *this;}
121 private:
122
123 Aws::String m_brokerId;
124 bool m_brokerIdHasBeenSet = false;
125
126 bool m_consoleAccess;
127 bool m_consoleAccessHasBeenSet = false;
128
130 bool m_groupsHasBeenSet = false;
131
132 Aws::String m_password;
133 bool m_passwordHasBeenSet = false;
134
135 Aws::String m_username;
136 bool m_usernameHasBeenSet = false;
137
138 bool m_replicationUser;
139 bool m_replicationUserHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace MQ
144} // namespace Aws
void SetGroups(Aws::Vector< Aws::String > &&value)
void SetBrokerId(const char *value)
CreateUserRequest & WithUsername(const char *value)
const Aws::Vector< Aws::String > & GetGroups() const
void SetUsername(const Aws::String &value)
void SetBrokerId(const Aws::String &value)
CreateUserRequest & WithBrokerId(const char *value)
AWS_MQ_API Aws::String SerializePayload() const override
void SetPassword(Aws::String &&value)
CreateUserRequest & AddGroups(Aws::String &&value)
CreateUserRequest & AddGroups(const Aws::String &value)
void SetUsername(Aws::String &&value)
void SetGroups(const Aws::Vector< Aws::String > &value)
CreateUserRequest & WithConsoleAccess(bool value)
void SetBrokerId(Aws::String &&value)
CreateUserRequest & WithReplicationUser(bool value)
void SetPassword(const Aws::String &value)
CreateUserRequest & WithBrokerId(const Aws::String &value)
void SetUsername(const char *value)
void SetPassword(const char *value)
const Aws::String & GetUsername() const
CreateUserRequest & WithPassword(const char *value)
CreateUserRequest & WithPassword(Aws::String &&value)
CreateUserRequest & WithPassword(const Aws::String &value)
CreateUserRequest & WithGroups(const Aws::Vector< Aws::String > &value)
const Aws::String & GetBrokerId() const
virtual const char * GetServiceRequestName() const override
CreateUserRequest & WithGroups(Aws::Vector< Aws::String > &&value)
CreateUserRequest & WithBrokerId(Aws::String &&value)
const Aws::String & GetPassword() const
CreateUserRequest & WithUsername(Aws::String &&value)
CreateUserRequest & WithUsername(const Aws::String &value)
CreateUserRequest & AddGroups(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector