AWS SDK for C++  1.9.71
AWS SDK for C++
DeleteUserRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/mq/MQ_EXPORTS.h>
8 #include <aws/mq/MQRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MQ
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DeleteUser"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetBrokerId() const{ return m_brokerId; }
39 
43  inline bool BrokerIdHasBeenSet() const { return m_brokerIdHasBeenSet; }
44 
48  inline void SetBrokerId(const Aws::String& value) { m_brokerIdHasBeenSet = true; m_brokerId = value; }
49 
53  inline void SetBrokerId(Aws::String&& value) { m_brokerIdHasBeenSet = true; m_brokerId = std::move(value); }
54 
58  inline void SetBrokerId(const char* value) { m_brokerIdHasBeenSet = true; m_brokerId.assign(value); }
59 
63  inline DeleteUserRequest& WithBrokerId(const Aws::String& value) { SetBrokerId(value); return *this;}
64 
68  inline DeleteUserRequest& WithBrokerId(Aws::String&& value) { SetBrokerId(std::move(value)); return *this;}
69 
73  inline DeleteUserRequest& WithBrokerId(const char* value) { SetBrokerId(value); return *this;}
74 
75 
81  inline const Aws::String& GetUsername() const{ return m_username; }
82 
88  inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
89 
95  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
96 
102  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
103 
109  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
110 
116  inline DeleteUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
117 
123  inline DeleteUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
124 
130  inline DeleteUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
131 
132  private:
133 
134  Aws::String m_brokerId;
135  bool m_brokerIdHasBeenSet;
136 
137  Aws::String m_username;
138  bool m_usernameHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace MQ
143 } // namespace Aws
Aws::MQ::Model::DeleteUserRequest
Definition: DeleteUserRequest.h:22
AWS_MQ_API
#define AWS_MQ_API
Definition: MQ_EXPORTS.h:28
Aws::MQ::Model::DeleteUserRequest::SetBrokerId
void SetBrokerId(Aws::String &&value)
Definition: DeleteUserRequest.h:53
Aws::MQ::Model::DeleteUserRequest::UsernameHasBeenSet
bool UsernameHasBeenSet() const
Definition: DeleteUserRequest.h:88
Aws::MQ::Model::DeleteUserRequest::SetBrokerId
void SetBrokerId(const char *value)
Definition: DeleteUserRequest.h:58
Aws::MQ::Model::DeleteUserRequest::SetUsername
void SetUsername(const char *value)
Definition: DeleteUserRequest.h:109
MQ_EXPORTS.h
Aws::MQ::Model::DeleteUserRequest::BrokerIdHasBeenSet
bool BrokerIdHasBeenSet() const
Definition: DeleteUserRequest.h:43
Aws::MQ::Model::DeleteUserRequest::WithUsername
DeleteUserRequest & WithUsername(const char *value)
Definition: DeleteUserRequest.h:130
Aws::MQ::Model::DeleteUserRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MQ::Model::DeleteUserRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteUserRequest.h:30
Aws::MQ::Model::DeleteUserRequest::WithBrokerId
DeleteUserRequest & WithBrokerId(const Aws::String &value)
Definition: DeleteUserRequest.h:63
Aws::MQ::Model::DeleteUserRequest::WithBrokerId
DeleteUserRequest & WithBrokerId(Aws::String &&value)
Definition: DeleteUserRequest.h:68
Aws::MQ::Model::DeleteUserRequest::SetBrokerId
void SetBrokerId(const Aws::String &value)
Definition: DeleteUserRequest.h:48
Aws::MQ::Model::DeleteUserRequest::GetUsername
const Aws::String & GetUsername() const
Definition: DeleteUserRequest.h:81
Aws::MQ::Model::DeleteUserRequest::WithUsername
DeleteUserRequest & WithUsername(const Aws::String &value)
Definition: DeleteUserRequest.h:116
AWSString.h
Aws::MQ::Model::DeleteUserRequest::DeleteUserRequest
DeleteUserRequest()
MQRequest.h
Aws::MQ::Model::DeleteUserRequest::GetBrokerId
const Aws::String & GetBrokerId() const
Definition: DeleteUserRequest.h:38
Aws::MQ::Model::DeleteUserRequest::SetUsername
void SetUsername(const Aws::String &value)
Definition: DeleteUserRequest.h:95
Aws::MQ::Model::DeleteUserRequest::WithBrokerId
DeleteUserRequest & WithBrokerId(const char *value)
Definition: DeleteUserRequest.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::MQ::MQRequest
Definition: MQRequest.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MQ::Model::DeleteUserRequest::WithUsername
DeleteUserRequest & WithUsername(Aws::String &&value)
Definition: DeleteUserRequest.h:123
Aws::MQ::Model::DeleteUserRequest::SetUsername
void SetUsername(Aws::String &&value)
Definition: DeleteUserRequest.h:102