AWS SDK for C++  1.9.106
AWS SDK for C++
RebootBrokerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Kafka
16 {
17 namespace Model
18 {
19 
26  {
27  public:
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 "RebootBroker"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
45  inline const Aws::Vector<Aws::String>& GetBrokerIds() const{ return m_brokerIds; }
46 
53  inline bool BrokerIdsHasBeenSet() const { return m_brokerIdsHasBeenSet; }
54 
61  inline void SetBrokerIds(const Aws::Vector<Aws::String>& value) { m_brokerIdsHasBeenSet = true; m_brokerIds = value; }
62 
69  inline void SetBrokerIds(Aws::Vector<Aws::String>&& value) { m_brokerIdsHasBeenSet = true; m_brokerIds = std::move(value); }
70 
77  inline RebootBrokerRequest& WithBrokerIds(const Aws::Vector<Aws::String>& value) { SetBrokerIds(value); return *this;}
78 
85  inline RebootBrokerRequest& WithBrokerIds(Aws::Vector<Aws::String>&& value) { SetBrokerIds(std::move(value)); return *this;}
86 
93  inline RebootBrokerRequest& AddBrokerIds(const Aws::String& value) { m_brokerIdsHasBeenSet = true; m_brokerIds.push_back(value); return *this; }
94 
101  inline RebootBrokerRequest& AddBrokerIds(Aws::String&& value) { m_brokerIdsHasBeenSet = true; m_brokerIds.push_back(std::move(value)); return *this; }
102 
109  inline RebootBrokerRequest& AddBrokerIds(const char* value) { m_brokerIdsHasBeenSet = true; m_brokerIds.push_back(value); return *this; }
110 
111 
118  inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
119 
126  inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
127 
134  inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
135 
142  inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
143 
150  inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
151 
158  inline RebootBrokerRequest& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
159 
166  inline RebootBrokerRequest& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
167 
174  inline RebootBrokerRequest& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
175 
176  private:
177 
178  Aws::Vector<Aws::String> m_brokerIds;
179  bool m_brokerIdsHasBeenSet;
180 
181  Aws::String m_clusterArn;
182  bool m_clusterArnHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace Kafka
187 } // namespace Aws
KafkaRequest.h
Aws::Kafka::KafkaRequest
Definition: KafkaRequest.h:17
Aws::Kafka::Model::RebootBrokerRequest
Definition: RebootBrokerRequest.h:26
Aws::Kafka::Model::RebootBrokerRequest::WithClusterArn
RebootBrokerRequest & WithClusterArn(const Aws::String &value)
Definition: RebootBrokerRequest.h:158
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Kafka::Model::RebootBrokerRequest::GetClusterArn
const Aws::String & GetClusterArn() const
Definition: RebootBrokerRequest.h:118
Aws::Kafka::Model::RebootBrokerRequest::RebootBrokerRequest
RebootBrokerRequest()
Aws::Kafka::Model::RebootBrokerRequest::WithClusterArn
RebootBrokerRequest & WithClusterArn(Aws::String &&value)
Definition: RebootBrokerRequest.h:166
AWSVector.h
Aws::Kafka::Model::RebootBrokerRequest::SetClusterArn
void SetClusterArn(const char *value)
Definition: RebootBrokerRequest.h:150
Aws::Kafka::Model::RebootBrokerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RebootBrokerRequest.h:34
Aws::Kafka::Model::RebootBrokerRequest::SetBrokerIds
void SetBrokerIds(Aws::Vector< Aws::String > &&value)
Definition: RebootBrokerRequest.h:69
Aws::Kafka::Model::RebootBrokerRequest::BrokerIdsHasBeenSet
bool BrokerIdsHasBeenSet() const
Definition: RebootBrokerRequest.h:53
Aws::Kafka::Model::RebootBrokerRequest::WithBrokerIds
RebootBrokerRequest & WithBrokerIds(const Aws::Vector< Aws::String > &value)
Definition: RebootBrokerRequest.h:77
AWSString.h
Aws::Kafka::Model::RebootBrokerRequest::SetClusterArn
void SetClusterArn(const Aws::String &value)
Definition: RebootBrokerRequest.h:134
AWS_KAFKA_API
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
Aws::Kafka::Model::RebootBrokerRequest::SetClusterArn
void SetClusterArn(Aws::String &&value)
Definition: RebootBrokerRequest.h:142
Aws::Kafka::Model::RebootBrokerRequest::WithClusterArn
RebootBrokerRequest & WithClusterArn(const char *value)
Definition: RebootBrokerRequest.h:174
Aws::Kafka::Model::RebootBrokerRequest::SetBrokerIds
void SetBrokerIds(const Aws::Vector< Aws::String > &value)
Definition: RebootBrokerRequest.h:61
Aws::Kafka::Model::RebootBrokerRequest::ClusterArnHasBeenSet
bool ClusterArnHasBeenSet() const
Definition: RebootBrokerRequest.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::Kafka::Model::RebootBrokerRequest::WithBrokerIds
RebootBrokerRequest & WithBrokerIds(Aws::Vector< Aws::String > &&value)
Definition: RebootBrokerRequest.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Kafka_EXPORTS.h
Aws::Kafka::Model::RebootBrokerRequest::GetBrokerIds
const Aws::Vector< Aws::String > & GetBrokerIds() const
Definition: RebootBrokerRequest.h:45
Aws::Kafka::Model::RebootBrokerRequest::AddBrokerIds
RebootBrokerRequest & AddBrokerIds(const char *value)
Definition: RebootBrokerRequest.h:109
Aws::Kafka::Model::RebootBrokerRequest::AddBrokerIds
RebootBrokerRequest & AddBrokerIds(Aws::String &&value)
Definition: RebootBrokerRequest.h:101
Aws::Kafka::Model::RebootBrokerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Kafka::Model::RebootBrokerRequest::AddBrokerIds
RebootBrokerRequest & AddBrokerIds(const Aws::String &value)
Definition: RebootBrokerRequest.h:93