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

Represents an MSK Configuration.

See * Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the configuration.

* */ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline Configuration& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline Configuration& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the configuration.

* */ inline Configuration& WithArn(const char* value) { SetArn(value); return *this;} /** *

The time when the configuration was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The time when the configuration was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The time when the configuration was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The time when the configuration was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The time when the configuration was created.

*/ inline Configuration& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The time when the configuration was created.

*/ inline Configuration& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The description of the configuration.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the configuration.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the configuration.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the configuration.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the configuration.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the configuration.

*/ inline Configuration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the configuration.

*/ inline Configuration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the configuration.

*/ inline Configuration& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

An array of the versions of Apache Kafka with which you can use * this MSK configuration. You can use this configuration for an MSK cluster only * if the Apache Kafka version specified for the cluster appears in this * array.

*/ inline const Aws::Vector& GetKafkaVersions() const{ return m_kafkaVersions; } /** *

An array of the versions of Apache Kafka with which you can use * this MSK configuration. You can use this configuration for an MSK cluster only * if the Apache Kafka version specified for the cluster appears in this * array.

*/ inline bool KafkaVersionsHasBeenSet() const { return m_kafkaVersionsHasBeenSet; } /** *

An array of the versions of Apache Kafka with which you can use * this MSK configuration. You can use this configuration for an MSK cluster only * if the Apache Kafka version specified for the cluster appears in this * array.

*/ inline void SetKafkaVersions(const Aws::Vector& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = value; } /** *

An array of the versions of Apache Kafka with which you can use * this MSK configuration. You can use this configuration for an MSK cluster only * if the Apache Kafka version specified for the cluster appears in this * array.

*/ inline void SetKafkaVersions(Aws::Vector&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions = std::move(value); } /** *

An array of the versions of Apache Kafka with which you can use * this MSK configuration. You can use this configuration for an MSK cluster only * if the Apache Kafka version specified for the cluster appears in this * array.

*/ inline Configuration& WithKafkaVersions(const Aws::Vector& value) { SetKafkaVersions(value); return *this;} /** *

An array of the versions of Apache Kafka with which you can use * this MSK configuration. You can use this configuration for an MSK cluster only * if the Apache Kafka version specified for the cluster appears in this * array.

*/ inline Configuration& WithKafkaVersions(Aws::Vector&& value) { SetKafkaVersions(std::move(value)); return *this;} /** *

An array of the versions of Apache Kafka with which you can use * this MSK configuration. You can use this configuration for an MSK cluster only * if the Apache Kafka version specified for the cluster appears in this * array.

*/ inline Configuration& AddKafkaVersions(const Aws::String& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(value); return *this; } /** *

An array of the versions of Apache Kafka with which you can use * this MSK configuration. You can use this configuration for an MSK cluster only * if the Apache Kafka version specified for the cluster appears in this * array.

*/ inline Configuration& AddKafkaVersions(Aws::String&& value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(std::move(value)); return *this; } /** *

An array of the versions of Apache Kafka with which you can use * this MSK configuration. You can use this configuration for an MSK cluster only * if the Apache Kafka version specified for the cluster appears in this * array.

*/ inline Configuration& AddKafkaVersions(const char* value) { m_kafkaVersionsHasBeenSet = true; m_kafkaVersions.push_back(value); return *this; } /** *

Latest revision of the configuration.

*/ inline const ConfigurationRevision& GetLatestRevision() const{ return m_latestRevision; } /** *

Latest revision of the configuration.

*/ inline bool LatestRevisionHasBeenSet() const { return m_latestRevisionHasBeenSet; } /** *

Latest revision of the configuration.

*/ inline void SetLatestRevision(const ConfigurationRevision& value) { m_latestRevisionHasBeenSet = true; m_latestRevision = value; } /** *

Latest revision of the configuration.

*/ inline void SetLatestRevision(ConfigurationRevision&& value) { m_latestRevisionHasBeenSet = true; m_latestRevision = std::move(value); } /** *

Latest revision of the configuration.

*/ inline Configuration& WithLatestRevision(const ConfigurationRevision& value) { SetLatestRevision(value); return *this;} /** *

Latest revision of the configuration.

*/ inline Configuration& WithLatestRevision(ConfigurationRevision&& value) { SetLatestRevision(std::move(value)); return *this;} /** *

The name of the configuration.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the configuration.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the configuration.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the configuration.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the configuration.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the configuration.

*/ inline Configuration& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the configuration.

*/ inline Configuration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the configuration.

*/ inline Configuration& WithName(const char* value) { SetName(value); return *this;} /** *

The state of the configuration. The possible states are ACTIVE, * DELETING, and DELETE_FAILED.

*/ inline const ConfigurationState& GetState() const{ return m_state; } /** *

The state of the configuration. The possible states are ACTIVE, * DELETING, and DELETE_FAILED.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the configuration. The possible states are ACTIVE, * DELETING, and DELETE_FAILED.

*/ inline void SetState(const ConfigurationState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the configuration. The possible states are ACTIVE, * DELETING, and DELETE_FAILED.

*/ inline void SetState(ConfigurationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the configuration. The possible states are ACTIVE, * DELETING, and DELETE_FAILED.

*/ inline Configuration& WithState(const ConfigurationState& value) { SetState(value); return *this;} /** *

The state of the configuration. The possible states are ACTIVE, * DELETING, and DELETE_FAILED.

*/ inline Configuration& WithState(ConfigurationState&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_kafkaVersions; bool m_kafkaVersionsHasBeenSet = false; ConfigurationRevision m_latestRevision; bool m_latestRevisionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ConfigurationState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws