/** * 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 #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Kafka { namespace Model { /** *

Provisioned cluster request.

See Also:

* AWS * API Reference

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

Information about the brokers.

*/ inline const BrokerNodeGroupInfo& GetBrokerNodeGroupInfo() const{ return m_brokerNodeGroupInfo; } /** *

Information about the brokers.

*/ inline bool BrokerNodeGroupInfoHasBeenSet() const { return m_brokerNodeGroupInfoHasBeenSet; } /** *

Information about the brokers.

*/ inline void SetBrokerNodeGroupInfo(const BrokerNodeGroupInfo& value) { m_brokerNodeGroupInfoHasBeenSet = true; m_brokerNodeGroupInfo = value; } /** *

Information about the brokers.

*/ inline void SetBrokerNodeGroupInfo(BrokerNodeGroupInfo&& value) { m_brokerNodeGroupInfoHasBeenSet = true; m_brokerNodeGroupInfo = std::move(value); } /** *

Information about the brokers.

*/ inline ProvisionedRequest& WithBrokerNodeGroupInfo(const BrokerNodeGroupInfo& value) { SetBrokerNodeGroupInfo(value); return *this;} /** *

Information about the brokers.

*/ inline ProvisionedRequest& WithBrokerNodeGroupInfo(BrokerNodeGroupInfo&& value) { SetBrokerNodeGroupInfo(std::move(value)); return *this;} /** *

Includes all client authentication information.

*/ inline const ClientAuthentication& GetClientAuthentication() const{ return m_clientAuthentication; } /** *

Includes all client authentication information.

*/ inline bool ClientAuthenticationHasBeenSet() const { return m_clientAuthenticationHasBeenSet; } /** *

Includes all client authentication information.

*/ inline void SetClientAuthentication(const ClientAuthentication& value) { m_clientAuthenticationHasBeenSet = true; m_clientAuthentication = value; } /** *

Includes all client authentication information.

*/ inline void SetClientAuthentication(ClientAuthentication&& value) { m_clientAuthenticationHasBeenSet = true; m_clientAuthentication = std::move(value); } /** *

Includes all client authentication information.

*/ inline ProvisionedRequest& WithClientAuthentication(const ClientAuthentication& value) { SetClientAuthentication(value); return *this;} /** *

Includes all client authentication information.

*/ inline ProvisionedRequest& WithClientAuthentication(ClientAuthentication&& value) { SetClientAuthentication(std::move(value)); return *this;} /** *

Represents the configuration that you want Amazon MSK to use for * the brokers in a cluster.

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

Represents the configuration that you want Amazon MSK to use for * the brokers in a cluster.

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

Represents the configuration that you want Amazon MSK to use for * the brokers in a cluster.

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

Represents the configuration that you want Amazon MSK to use for * the brokers in a cluster.

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

Represents the configuration that you want Amazon MSK to use for * the brokers in a cluster.

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

Represents the configuration that you want Amazon MSK to use for * the brokers in a cluster.

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

Includes all encryption-related information.

*/ inline const EncryptionInfo& GetEncryptionInfo() const{ return m_encryptionInfo; } /** *

Includes all encryption-related information.

*/ inline bool EncryptionInfoHasBeenSet() const { return m_encryptionInfoHasBeenSet; } /** *

Includes all encryption-related information.

*/ inline void SetEncryptionInfo(const EncryptionInfo& value) { m_encryptionInfoHasBeenSet = true; m_encryptionInfo = value; } /** *

Includes all encryption-related information.

*/ inline void SetEncryptionInfo(EncryptionInfo&& value) { m_encryptionInfoHasBeenSet = true; m_encryptionInfo = std::move(value); } /** *

Includes all encryption-related information.

*/ inline ProvisionedRequest& WithEncryptionInfo(const EncryptionInfo& value) { SetEncryptionInfo(value); return *this;} /** *

Includes all encryption-related information.

*/ inline ProvisionedRequest& WithEncryptionInfo(EncryptionInfo&& value) { SetEncryptionInfo(std::move(value)); return *this;} /** *

Specifies the level of monitoring for the MSK cluster. The * possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and * PER_TOPIC_PER_PARTITION.

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

Specifies the level of monitoring for the MSK cluster. The * possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and * PER_TOPIC_PER_PARTITION.

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

Specifies the level of monitoring for the MSK cluster. The * possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and * PER_TOPIC_PER_PARTITION.

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

Specifies the level of monitoring for the MSK cluster. The * possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and * PER_TOPIC_PER_PARTITION.

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

Specifies the level of monitoring for the MSK cluster. The * possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and * PER_TOPIC_PER_PARTITION.

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

Specifies the level of monitoring for the MSK cluster. The * possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and * PER_TOPIC_PER_PARTITION.

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

The settings for open monitoring.

*/ inline const OpenMonitoringInfo& 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 OpenMonitoringInfo& value) { m_openMonitoringHasBeenSet = true; m_openMonitoring = value; } /** *

The settings for open monitoring.

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

The settings for open monitoring.

*/ inline ProvisionedRequest& WithOpenMonitoring(const OpenMonitoringInfo& value) { SetOpenMonitoring(value); return *this;} /** *

The settings for open monitoring.

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

The Apache Kafka version that you want for the cluster.

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

The Apache Kafka version that you want for the cluster.

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

The Apache Kafka version that you want for the cluster.

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

The Apache Kafka version that you want for the cluster.

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

The Apache Kafka version that you want for the cluster.

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

The Apache Kafka version that you want for the cluster.

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

The Apache Kafka version that you want for the cluster.

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

The Apache Kafka version that you want for the cluster.

* */ inline ProvisionedRequest& WithKafkaVersion(const char* value) { SetKafkaVersion(value); return *this;} /** *

Log delivery information for the cluster.

*/ inline const LoggingInfo& GetLoggingInfo() const{ return m_loggingInfo; } /** *

Log delivery information for the cluster.

*/ inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; } /** *

Log delivery information for the cluster.

*/ inline void SetLoggingInfo(const LoggingInfo& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = value; } /** *

Log delivery information for the cluster.

*/ inline void SetLoggingInfo(LoggingInfo&& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = std::move(value); } /** *

Log delivery information for the cluster.

*/ inline ProvisionedRequest& WithLoggingInfo(const LoggingInfo& value) { SetLoggingInfo(value); return *this;} /** *

Log delivery information for the cluster.

*/ inline ProvisionedRequest& WithLoggingInfo(LoggingInfo&& value) { SetLoggingInfo(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 ProvisionedRequest& WithNumberOfBrokerNodes(int value) { SetNumberOfBrokerNodes(value); return *this;} /** *

This controls storage mode for supported storage tiers.

* */ inline const StorageMode& GetStorageMode() const{ return m_storageMode; } /** *

This controls storage mode for supported storage tiers.

* */ inline bool StorageModeHasBeenSet() const { return m_storageModeHasBeenSet; } /** *

This controls storage mode for supported storage tiers.

* */ inline void SetStorageMode(const StorageMode& value) { m_storageModeHasBeenSet = true; m_storageMode = value; } /** *

This controls storage mode for supported storage tiers.

* */ inline void SetStorageMode(StorageMode&& value) { m_storageModeHasBeenSet = true; m_storageMode = std::move(value); } /** *

This controls storage mode for supported storage tiers.

* */ inline ProvisionedRequest& WithStorageMode(const StorageMode& value) { SetStorageMode(value); return *this;} /** *

This controls storage mode for supported storage tiers.

* */ inline ProvisionedRequest& WithStorageMode(StorageMode&& value) { SetStorageMode(std::move(value)); return *this;} private: BrokerNodeGroupInfo m_brokerNodeGroupInfo; bool m_brokerNodeGroupInfoHasBeenSet = false; ClientAuthentication m_clientAuthentication; bool m_clientAuthenticationHasBeenSet = false; ConfigurationInfo m_configurationInfo; bool m_configurationInfoHasBeenSet = false; EncryptionInfo m_encryptionInfo; bool m_encryptionInfoHasBeenSet = false; EnhancedMonitoring m_enhancedMonitoring; bool m_enhancedMonitoringHasBeenSet = false; OpenMonitoringInfo m_openMonitoring; bool m_openMonitoringHasBeenSet = false; Aws::String m_kafkaVersion; bool m_kafkaVersionHasBeenSet = false; LoggingInfo m_loggingInfo; bool m_loggingInfoHasBeenSet = false; int m_numberOfBrokerNodes; bool m_numberOfBrokerNodesHasBeenSet = false; StorageMode m_storageMode; bool m_storageModeHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws