AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RebootBrokerRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kafka/KafkaRequest.h>
10#include <aws/kafka/Kafka_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Kafka {
16namespace Model {
17
24 public:
25 AWS_KAFKA_API RebootBrokerRequest() = default;
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 "RebootBroker"; }
32
33 AWS_KAFKA_API Aws::String SerializePayload() const override;
34
36
42 inline const Aws::Vector<Aws::String>& GetBrokerIds() const { return m_brokerIds; }
43 inline bool BrokerIdsHasBeenSet() const { return m_brokerIdsHasBeenSet; }
44 template <typename BrokerIdsT = Aws::Vector<Aws::String>>
45 void SetBrokerIds(BrokerIdsT&& value) {
46 m_brokerIdsHasBeenSet = true;
47 m_brokerIds = std::forward<BrokerIdsT>(value);
48 }
49 template <typename BrokerIdsT = Aws::Vector<Aws::String>>
50 RebootBrokerRequest& WithBrokerIds(BrokerIdsT&& value) {
51 SetBrokerIds(std::forward<BrokerIdsT>(value));
52 return *this;
53 }
54 template <typename BrokerIdsT = Aws::String>
55 RebootBrokerRequest& AddBrokerIds(BrokerIdsT&& value) {
56 m_brokerIdsHasBeenSet = true;
57 m_brokerIds.emplace_back(std::forward<BrokerIdsT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
70 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
71 template <typename ClusterArnT = Aws::String>
72 void SetClusterArn(ClusterArnT&& value) {
73 m_clusterArnHasBeenSet = true;
74 m_clusterArn = std::forward<ClusterArnT>(value);
75 }
76 template <typename ClusterArnT = Aws::String>
77 RebootBrokerRequest& WithClusterArn(ClusterArnT&& value) {
78 SetClusterArn(std::forward<ClusterArnT>(value));
79 return *this;
80 }
82 private:
83 Aws::Vector<Aws::String> m_brokerIds;
84
85 Aws::String m_clusterArn;
86 bool m_brokerIdsHasBeenSet = false;
87 bool m_clusterArnHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace Kafka
92} // namespace Aws
virtual const char * GetServiceRequestName() const override
RebootBrokerRequest & WithClusterArn(ClusterArnT &&value)
AWS_KAFKA_API Aws::String SerializePayload() const override
AWS_KAFKA_API RebootBrokerRequest()=default
RebootBrokerRequest & AddBrokerIds(BrokerIdsT &&value)
RebootBrokerRequest & WithBrokerIds(BrokerIdsT &&value)
const Aws::String & GetClusterArn() const
const Aws::Vector< Aws::String > & GetBrokerIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector