/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Kafka { namespace Model { class CreateClusterV2Result { public: AWS_KAFKA_API CreateClusterV2Result(); AWS_KAFKA_API CreateClusterV2Result(const Aws::AmazonWebServiceResult& result); AWS_KAFKA_API CreateClusterV2Result& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline const Aws::String& GetClusterArn() const{ return m_clusterArn; } /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline void SetClusterArn(const Aws::String& value) { m_clusterArn = value; } /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline void SetClusterArn(Aws::String&& value) { m_clusterArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline void SetClusterArn(const char* value) { m_clusterArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline CreateClusterV2Result& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline CreateClusterV2Result& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline CreateClusterV2Result& WithClusterArn(const char* value) { SetClusterArn(value); return *this;} /** *

The name of the MSK cluster.

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

The name of the MSK cluster.

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

The name of the MSK cluster.

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

The name of the MSK cluster.

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

The name of the MSK cluster.

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

The name of the MSK cluster.

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

The name of the MSK cluster.

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

The state of the cluster. The possible states are ACTIVE, * CREATING, DELETING, FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and * UPDATING.

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

The state of the cluster. The possible states are ACTIVE, * CREATING, DELETING, FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and * UPDATING.

*/ inline void SetState(const ClusterState& value) { m_state = value; } /** *

The state of the cluster. The possible states are ACTIVE, * CREATING, DELETING, FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and * UPDATING.

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

The state of the cluster. The possible states are ACTIVE, * CREATING, DELETING, FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and * UPDATING.

*/ inline CreateClusterV2Result& WithState(const ClusterState& value) { SetState(value); return *this;} /** *

The state of the cluster. The possible states are ACTIVE, * CREATING, DELETING, FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and * UPDATING.

*/ inline CreateClusterV2Result& WithState(ClusterState&& value) { SetState(std::move(value)); return *this;} /** *

The type of the cluster. The possible states are PROVISIONED or * SERVERLESS.

*/ inline const ClusterType& GetClusterType() const{ return m_clusterType; } /** *

The type of the cluster. The possible states are PROVISIONED or * SERVERLESS.

*/ inline void SetClusterType(const ClusterType& value) { m_clusterType = value; } /** *

The type of the cluster. The possible states are PROVISIONED or * SERVERLESS.

*/ inline void SetClusterType(ClusterType&& value) { m_clusterType = std::move(value); } /** *

The type of the cluster. The possible states are PROVISIONED or * SERVERLESS.

*/ inline CreateClusterV2Result& WithClusterType(const ClusterType& value) { SetClusterType(value); return *this;} /** *

The type of the cluster. The possible states are PROVISIONED or * SERVERLESS.

*/ inline CreateClusterV2Result& WithClusterType(ClusterType&& value) { SetClusterType(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateClusterV2Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateClusterV2Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateClusterV2Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_clusterArn; Aws::String m_clusterName; ClusterState m_state; ClusterType m_clusterType; Aws::String m_requestId; }; } // namespace Model } // namespace Kafka } // namespace Aws