/** * 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 #include namespace Aws { namespace Kafka { namespace Model { /** */ class AWS_KAFKA_API CreateClusterRequest : public KafkaRequest { public: CreateClusterRequest(); // 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 "CreateCluster"; } Aws::String SerializePayload() const override; /** *

Information about the broker nodes in the cluster.

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

Information about the broker nodes in the cluster.

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

Information about the broker nodes in the cluster.

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

Information about the broker nodes in the cluster.

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

Information about the broker nodes in the cluster.

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

Information about the broker nodes in the cluster.

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

Includes all client authentication related information.

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

Includes all client authentication related information.

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

Includes all client authentication related information.

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

Includes all client authentication related information.

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

Includes all client authentication related information.

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

Includes all client authentication related information.

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

The name of the cluster.

*/ inline const Aws::String& GetClusterName() const{ return m_clusterName; } /** *

The name of the cluster.

*/ inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } /** *

The name of the cluster.

*/ inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; } /** *

The name of the cluster.

*/ inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); } /** *

The name of the cluster.

*/ inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); } /** *

The name of the cluster.

*/ inline CreateClusterRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;} /** *

The name of the cluster.

*/ inline CreateClusterRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;} /** *

The name of the cluster.

*/ inline CreateClusterRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;} /** *

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

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

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

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

Represents the configuration that you want 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 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 MSK to use for the * brokers in a cluster.

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

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

*/ inline CreateClusterRequest& 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 CreateClusterRequest& WithEncryptionInfo(const EncryptionInfo& value) { SetEncryptionInfo(value); return *this;} /** *

Includes all encryption-related information.

*/ inline CreateClusterRequest& 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, and PER_TOPIC_PER_BROKER.

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

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

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

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

*/ 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, and PER_TOPIC_PER_BROKER.

*/ 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, and PER_TOPIC_PER_BROKER.

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

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

*/ inline CreateClusterRequest& 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 CreateClusterRequest& WithOpenMonitoring(const OpenMonitoringInfo& value) { SetOpenMonitoring(value); return *this;} /** *

The settings for open monitoring.

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

The version of Apache Kafka.

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

The version of Apache Kafka.

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

The version of Apache Kafka.

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

The version of Apache Kafka.

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

The version of Apache Kafka.

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

The version of Apache Kafka.

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

The version of Apache Kafka.

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

The version of Apache Kafka.

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

Create tags when creating the cluster.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Create tags when creating the cluster.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Create tags when creating the cluster.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Create tags when creating the cluster.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Create tags when creating the cluster.

*/ inline CreateClusterRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Create tags when creating the cluster.

*/ inline CreateClusterRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Create tags when creating the cluster.

*/ inline CreateClusterRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Create tags when creating the cluster.

*/ inline CreateClusterRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Create tags when creating the cluster.

*/ inline CreateClusterRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Create tags when creating the cluster.

*/ inline CreateClusterRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Create tags when creating the cluster.

*/ inline CreateClusterRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Create tags when creating the cluster.

*/ inline CreateClusterRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Create tags when creating the cluster.

*/ inline CreateClusterRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: BrokerNodeGroupInfo m_brokerNodeGroupInfo; bool m_brokerNodeGroupInfoHasBeenSet; ClientAuthentication m_clientAuthentication; bool m_clientAuthenticationHasBeenSet; Aws::String m_clusterName; bool m_clusterNameHasBeenSet; ConfigurationInfo m_configurationInfo; bool m_configurationInfoHasBeenSet; EncryptionInfo m_encryptionInfo; bool m_encryptionInfoHasBeenSet; EnhancedMonitoring m_enhancedMonitoring; bool m_enhancedMonitoringHasBeenSet; OpenMonitoringInfo m_openMonitoring; bool m_openMonitoringHasBeenSet; Aws::String m_kafkaVersion; bool m_kafkaVersionHasBeenSet; LoggingInfo m_loggingInfo; bool m_loggingInfoHasBeenSet; int m_numberOfBrokerNodes; bool m_numberOfBrokerNodesHasBeenSet; Aws::Map m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace Kafka } // namespace Aws