/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Kafka { namespace Model { /** *

Information about cluster attributes that can be updated via * update APIs.

See Also:

AWS * API Reference

*/ class AWS_KAFKA_API MutableClusterInfo { public: MutableClusterInfo(); MutableClusterInfo(Aws::Utils::Json::JsonView jsonValue); MutableClusterInfo& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

Specifies the size of the EBS volume and the ID of the * associated broker.

*/ inline const Aws::Vector& GetBrokerEBSVolumeInfo() const{ return m_brokerEBSVolumeInfo; } /** *

Specifies the size of the EBS volume and the ID of the * associated broker.

*/ inline bool BrokerEBSVolumeInfoHasBeenSet() const { return m_brokerEBSVolumeInfoHasBeenSet; } /** *

Specifies the size of the EBS volume and the ID of the * associated broker.

*/ inline void SetBrokerEBSVolumeInfo(const Aws::Vector& value) { m_brokerEBSVolumeInfoHasBeenSet = true; m_brokerEBSVolumeInfo = value; } /** *

Specifies the size of the EBS volume and the ID of the * associated broker.

*/ inline void SetBrokerEBSVolumeInfo(Aws::Vector&& value) { m_brokerEBSVolumeInfoHasBeenSet = true; m_brokerEBSVolumeInfo = std::move(value); } /** *

Specifies the size of the EBS volume and the ID of the * associated broker.

*/ inline MutableClusterInfo& WithBrokerEBSVolumeInfo(const Aws::Vector& value) { SetBrokerEBSVolumeInfo(value); return *this;} /** *

Specifies the size of the EBS volume and the ID of the * associated broker.

*/ inline MutableClusterInfo& WithBrokerEBSVolumeInfo(Aws::Vector&& value) { SetBrokerEBSVolumeInfo(std::move(value)); return *this;} /** *

Specifies the size of the EBS volume and the ID of the * associated broker.

*/ inline MutableClusterInfo& AddBrokerEBSVolumeInfo(const BrokerEBSVolumeInfo& value) { m_brokerEBSVolumeInfoHasBeenSet = true; m_brokerEBSVolumeInfo.push_back(value); return *this; } /** *

Specifies the size of the EBS volume and the ID of the * associated broker.

*/ inline MutableClusterInfo& AddBrokerEBSVolumeInfo(BrokerEBSVolumeInfo&& value) { m_brokerEBSVolumeInfoHasBeenSet = true; m_brokerEBSVolumeInfo.push_back(std::move(value)); return *this; } /** *

Information about the changes in the configuration of the * brokers.

*/ inline const ConfigurationInfo& GetConfigurationInfo() const{ return m_configurationInfo; } /** *

Information about the changes in the configuration of the * brokers.

*/ inline bool ConfigurationInfoHasBeenSet() const { return m_configurationInfoHasBeenSet; } /** *

Information about the changes in the configuration of the * brokers.

*/ inline void SetConfigurationInfo(const ConfigurationInfo& value) { m_configurationInfoHasBeenSet = true; m_configurationInfo = value; } /** *

Information about the changes in the configuration of the * brokers.

*/ inline void SetConfigurationInfo(ConfigurationInfo&& value) { m_configurationInfoHasBeenSet = true; m_configurationInfo = std::move(value); } /** *

Information about the changes in the configuration of the * brokers.

*/ inline MutableClusterInfo& WithConfigurationInfo(const ConfigurationInfo& value) { SetConfigurationInfo(value); return *this;} /** *

Information about the changes in the configuration of the * brokers.

*/ inline MutableClusterInfo& WithConfigurationInfo(ConfigurationInfo&& value) { SetConfigurationInfo(std::move(value)); return *this;} /** *

The number of broker nodes in the cluster.

*/ inline int GetNumberOfBrokerNodes() const{ return m_numberOfBrokerNodes; } /** *

The number of broker nodes in the cluster.

*/ inline bool NumberOfBrokerNodesHasBeenSet() const { return m_numberOfBrokerNodesHasBeenSet; } /** *

The number of broker nodes in the cluster.

*/ inline void SetNumberOfBrokerNodes(int value) { m_numberOfBrokerNodesHasBeenSet = true; m_numberOfBrokerNodes = value; } /** *

The number of broker nodes in the cluster.

*/ inline MutableClusterInfo& WithNumberOfBrokerNodes(int value) { SetNumberOfBrokerNodes(value); return *this;} /** *

Specifies which Apache Kafka metrics Amazon MSK gathers and * sends to Amazon CloudWatch for this cluster.

*/ inline const EnhancedMonitoring& GetEnhancedMonitoring() const{ return m_enhancedMonitoring; } /** *

Specifies which Apache Kafka metrics Amazon MSK gathers and * sends to Amazon CloudWatch for this cluster.

*/ inline bool EnhancedMonitoringHasBeenSet() const { return m_enhancedMonitoringHasBeenSet; } /** *

Specifies which Apache Kafka metrics Amazon MSK gathers and * sends to Amazon CloudWatch for this cluster.

*/ inline void SetEnhancedMonitoring(const EnhancedMonitoring& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring = value; } /** *

Specifies which Apache Kafka metrics Amazon MSK gathers and * sends to Amazon CloudWatch for this cluster.

*/ inline void SetEnhancedMonitoring(EnhancedMonitoring&& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring = std::move(value); } /** *

Specifies which Apache Kafka metrics Amazon MSK gathers and * sends to Amazon CloudWatch for this cluster.

*/ inline MutableClusterInfo& WithEnhancedMonitoring(const EnhancedMonitoring& value) { SetEnhancedMonitoring(value); return *this;} /** *

Specifies which Apache Kafka metrics Amazon MSK gathers and * sends to Amazon CloudWatch for this cluster.

*/ inline MutableClusterInfo& WithEnhancedMonitoring(EnhancedMonitoring&& value) { SetEnhancedMonitoring(std::move(value)); return *this;} /** *

The settings for open monitoring.

*/ inline const OpenMonitoring& GetOpenMonitoring() const{ return m_openMonitoring; } /** *

The settings for open monitoring.

*/ inline bool OpenMonitoringHasBeenSet() const { return m_openMonitoringHasBeenSet; } /** *

The settings for open monitoring.

*/ inline void SetOpenMonitoring(const OpenMonitoring& value) { m_openMonitoringHasBeenSet = true; m_openMonitoring = value; } /** *

The settings for open monitoring.

*/ inline void SetOpenMonitoring(OpenMonitoring&& value) { m_openMonitoringHasBeenSet = true; m_openMonitoring = std::move(value); } /** *

The settings for open monitoring.

*/ inline MutableClusterInfo& WithOpenMonitoring(const OpenMonitoring& value) { SetOpenMonitoring(value); return *this;} /** *

The settings for open monitoring.

*/ inline MutableClusterInfo& WithOpenMonitoring(OpenMonitoring&& value) { SetOpenMonitoring(std::move(value)); return *this;} /** *

The Kafka version.

*/ inline const Aws::String& GetKafkaVersion() const{ return m_kafkaVersion; } /** *

The Kafka version.

*/ inline bool KafkaVersionHasBeenSet() const { return m_kafkaVersionHasBeenSet; } /** *

The Kafka version.

*/ inline void SetKafkaVersion(const Aws::String& value) { m_kafkaVersionHasBeenSet = true; m_kafkaVersion = value; } /** *

The Kafka version.

*/ inline void SetKafkaVersion(Aws::String&& value) { m_kafkaVersionHasBeenSet = true; m_kafkaVersion = std::move(value); } /** *

The Kafka version.

*/ inline void SetKafkaVersion(const char* value) { m_kafkaVersionHasBeenSet = true; m_kafkaVersion.assign(value); } /** *

The Kafka version.

*/ inline MutableClusterInfo& WithKafkaVersion(const Aws::String& value) { SetKafkaVersion(value); return *this;} /** *

The Kafka version.

*/ inline MutableClusterInfo& WithKafkaVersion(Aws::String&& value) { SetKafkaVersion(std::move(value)); return *this;} /** *

The Kafka version.

*/ inline MutableClusterInfo& WithKafkaVersion(const char* value) { SetKafkaVersion(value); return *this;} inline const LoggingInfo& GetLoggingInfo() const{ return m_loggingInfo; } inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; } inline void SetLoggingInfo(const LoggingInfo& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = value; } inline void SetLoggingInfo(LoggingInfo&& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = std::move(value); } inline MutableClusterInfo& WithLoggingInfo(const LoggingInfo& value) { SetLoggingInfo(value); return *this;} inline MutableClusterInfo& WithLoggingInfo(LoggingInfo&& value) { SetLoggingInfo(std::move(value)); return *this;} private: Aws::Vector m_brokerEBSVolumeInfo; bool m_brokerEBSVolumeInfoHasBeenSet; ConfigurationInfo m_configurationInfo; bool m_configurationInfoHasBeenSet; int m_numberOfBrokerNodes; bool m_numberOfBrokerNodesHasBeenSet; EnhancedMonitoring m_enhancedMonitoring; bool m_enhancedMonitoringHasBeenSet; OpenMonitoring m_openMonitoring; bool m_openMonitoringHasBeenSet; Aws::String m_kafkaVersion; bool m_kafkaVersionHasBeenSet; LoggingInfo m_loggingInfo; bool m_loggingInfoHasBeenSet; }; } // namespace Model } // namespace Kafka } // namespace Aws