AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RebootBrokerRequest.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Kafka
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_KAFKA_API RebootBrokerRequest() = default;
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_KAFKA_API Aws::String SerializePayload() const override;
37
38
40
46 inline const Aws::Vector<Aws::String>& GetBrokerIds() const { return m_brokerIds; }
47 inline bool BrokerIdsHasBeenSet() const { return m_brokerIdsHasBeenSet; }
48 template<typename BrokerIdsT = Aws::Vector<Aws::String>>
49 void SetBrokerIds(BrokerIdsT&& value) { m_brokerIdsHasBeenSet = true; m_brokerIds = std::forward<BrokerIdsT>(value); }
50 template<typename BrokerIdsT = Aws::Vector<Aws::String>>
51 RebootBrokerRequest& WithBrokerIds(BrokerIdsT&& value) { SetBrokerIds(std::forward<BrokerIdsT>(value)); return *this;}
52 template<typename BrokerIdsT = Aws::String>
53 RebootBrokerRequest& AddBrokerIds(BrokerIdsT&& value) { m_brokerIdsHasBeenSet = true; m_brokerIds.emplace_back(std::forward<BrokerIdsT>(value)); return *this; }
55
57
63 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
64 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
65 template<typename ClusterArnT = Aws::String>
66 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
67 template<typename ClusterArnT = Aws::String>
68 RebootBrokerRequest& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
70 private:
71
72 Aws::Vector<Aws::String> m_brokerIds;
73 bool m_brokerIdsHasBeenSet = false;
74
75 Aws::String m_clusterArn;
76 bool m_clusterArnHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Kafka
81} // 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