This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-kafka/include/aws/kafka/model/CreateClusterResult.h

188 lines
4.6 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/kafka/Kafka_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/kafka/model/ClusterState.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Kafka
{
namespace Model
{
class AWS_KAFKA_API CreateClusterResult
{
public:
CreateClusterResult();
CreateClusterResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateClusterResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline void SetClusterArn(const Aws::String& value) { m_clusterArn = value; }
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline void SetClusterArn(Aws::String&& value) { m_clusterArn = std::move(value); }
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline void SetClusterArn(const char* value) { m_clusterArn.assign(value); }
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline CreateClusterResult& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline CreateClusterResult& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline CreateClusterResult& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
/**
*
<p>The name of the MSK cluster.</p>
*/
inline const Aws::String& GetClusterName() const{ return m_clusterName; }
/**
*
<p>The name of the MSK cluster.</p>
*/
inline void SetClusterName(const Aws::String& value) { m_clusterName = value; }
/**
*
<p>The name of the MSK cluster.</p>
*/
inline void SetClusterName(Aws::String&& value) { m_clusterName = std::move(value); }
/**
*
<p>The name of the MSK cluster.</p>
*/
inline void SetClusterName(const char* value) { m_clusterName.assign(value); }
/**
*
<p>The name of the MSK cluster.</p>
*/
inline CreateClusterResult& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
/**
*
<p>The name of the MSK cluster.</p>
*/
inline CreateClusterResult& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
/**
*
<p>The name of the MSK cluster.</p>
*/
inline CreateClusterResult& WithClusterName(const char* value) { SetClusterName(value); return *this;}
/**
*
<p>The state of the cluster. The possible states are CREATING,
* ACTIVE, and FAILED.</p>
*/
inline const ClusterState& GetState() const{ return m_state; }
/**
*
<p>The state of the cluster. The possible states are CREATING,
* ACTIVE, and FAILED.</p>
*/
inline void SetState(const ClusterState& value) { m_state = value; }
/**
*
<p>The state of the cluster. The possible states are CREATING,
* ACTIVE, and FAILED.</p>
*/
inline void SetState(ClusterState&& value) { m_state = std::move(value); }
/**
*
<p>The state of the cluster. The possible states are CREATING,
* ACTIVE, and FAILED.</p>
*/
inline CreateClusterResult& WithState(const ClusterState& value) { SetState(value); return *this;}
/**
*
<p>The state of the cluster. The possible states are CREATING,
* ACTIVE, and FAILED.</p>
*/
inline CreateClusterResult& WithState(ClusterState&& value) { SetState(std::move(value)); return *this;}
private:
Aws::String m_clusterArn;
Aws::String m_clusterName;
ClusterState m_state;
};
} // namespace Model
} // namespace Kafka
} // namespace Aws