/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Kafka { namespace Model { /** * Reboots a node.

See Also:

AWS * API Reference

*/ class RebootBrokerRequest : public KafkaRequest { public: AWS_KAFKA_API RebootBrokerRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RebootBroker"; } AWS_KAFKA_API Aws::String SerializePayload() const override; /** *

The list of broker IDs to be rebooted. The reboot-broker * operation supports rebooting one broker at a time.

*/ inline const Aws::Vector& GetBrokerIds() const{ return m_brokerIds; } /** *

The list of broker IDs to be rebooted. The reboot-broker * operation supports rebooting one broker at a time.

*/ inline bool BrokerIdsHasBeenSet() const { return m_brokerIdsHasBeenSet; } /** *

The list of broker IDs to be rebooted. The reboot-broker * operation supports rebooting one broker at a time.

*/ inline void SetBrokerIds(const Aws::Vector& value) { m_brokerIdsHasBeenSet = true; m_brokerIds = value; } /** *

The list of broker IDs to be rebooted. The reboot-broker * operation supports rebooting one broker at a time.

*/ inline void SetBrokerIds(Aws::Vector&& value) { m_brokerIdsHasBeenSet = true; m_brokerIds = std::move(value); } /** *

The list of broker IDs to be rebooted. The reboot-broker * operation supports rebooting one broker at a time.

*/ inline RebootBrokerRequest& WithBrokerIds(const Aws::Vector& value) { SetBrokerIds(value); return *this;} /** *

The list of broker IDs to be rebooted. The reboot-broker * operation supports rebooting one broker at a time.

*/ inline RebootBrokerRequest& WithBrokerIds(Aws::Vector&& value) { SetBrokerIds(std::move(value)); return *this;} /** *

The list of broker IDs to be rebooted. The reboot-broker * operation supports rebooting one broker at a time.

*/ inline RebootBrokerRequest& AddBrokerIds(const Aws::String& value) { m_brokerIdsHasBeenSet = true; m_brokerIds.push_back(value); return *this; } /** *

The list of broker IDs to be rebooted. The reboot-broker * operation supports rebooting one broker at a time.

*/ inline RebootBrokerRequest& AddBrokerIds(Aws::String&& value) { m_brokerIdsHasBeenSet = true; m_brokerIds.push_back(std::move(value)); return *this; } /** *

The list of broker IDs to be rebooted. The reboot-broker * operation supports rebooting one broker at a time.

*/ inline RebootBrokerRequest& AddBrokerIds(const char* value) { m_brokerIdsHasBeenSet = true; m_brokerIds.push_back(value); return *this; } /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline const Aws::String& GetClusterArn() const{ return m_clusterArn; } /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; } /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline RebootBrokerRequest& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline RebootBrokerRequest& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the cluster to be * updated.

*/ inline RebootBrokerRequest& WithClusterArn(const char* value) { SetClusterArn(value); return *this;} private: Aws::Vector m_brokerIds; bool m_brokerIdsHasBeenSet = false; Aws::String m_clusterArn; bool m_clusterArnHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws