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

Contains source Apache Kafka versions and compatible target * Apache Kafka versions.

See Also:

AWS * API Reference

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

An Apache Kafka version.

*/ inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; } /** *

An Apache Kafka version.

*/ inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; } /** *

An Apache Kafka version.

*/ inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; } /** *

An Apache Kafka version.

*/ inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); } /** *

An Apache Kafka version.

*/ inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); } /** *

An Apache Kafka version.

*/ inline CompatibleKafkaVersion& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;} /** *

An Apache Kafka version.

*/ inline CompatibleKafkaVersion& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;} /** *

An Apache Kafka version.

*/ inline CompatibleKafkaVersion& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;} /** *

A list of Apache Kafka versions.

*/ inline const Aws::Vector& GetTargetVersions() const{ return m_targetVersions; } /** *

A list of Apache Kafka versions.

*/ inline bool TargetVersionsHasBeenSet() const { return m_targetVersionsHasBeenSet; } /** *

A list of Apache Kafka versions.

*/ inline void SetTargetVersions(const Aws::Vector& value) { m_targetVersionsHasBeenSet = true; m_targetVersions = value; } /** *

A list of Apache Kafka versions.

*/ inline void SetTargetVersions(Aws::Vector&& value) { m_targetVersionsHasBeenSet = true; m_targetVersions = std::move(value); } /** *

A list of Apache Kafka versions.

*/ inline CompatibleKafkaVersion& WithTargetVersions(const Aws::Vector& value) { SetTargetVersions(value); return *this;} /** *

A list of Apache Kafka versions.

*/ inline CompatibleKafkaVersion& WithTargetVersions(Aws::Vector&& value) { SetTargetVersions(std::move(value)); return *this;} /** *

A list of Apache Kafka versions.

*/ inline CompatibleKafkaVersion& AddTargetVersions(const Aws::String& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(value); return *this; } /** *

A list of Apache Kafka versions.

*/ inline CompatibleKafkaVersion& AddTargetVersions(Aws::String&& value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(std::move(value)); return *this; } /** *

A list of Apache Kafka versions.

*/ inline CompatibleKafkaVersion& AddTargetVersions(const char* value) { m_targetVersionsHasBeenSet = true; m_targetVersions.push_back(value); return *this; } private: Aws::String m_sourceVersion; bool m_sourceVersionHasBeenSet = false; Aws::Vector m_targetVersions; bool m_targetVersionsHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws