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/ClusterOperationInfo.h

663 lines
18 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/core/utils/DateTime.h>
#include <aws/kafka/model/ErrorInfo.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/kafka/model/MutableClusterInfo.h>
#include <aws/kafka/model/ClusterOperationStep.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Kafka
{
namespace Model
{
/**
*
<p>Returns information about a cluster operation.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ClusterOperationInfo">AWS
* API Reference</a></p>
*/
class AWS_KAFKA_API ClusterOperationInfo
{
public:
ClusterOperationInfo();
ClusterOperationInfo(Aws::Utils::Json::JsonView jsonValue);
ClusterOperationInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
*
<p>The ID of the API request that triggered this operation.</p>
*
*/
inline const Aws::String& GetClientRequestId() const{ return m_clientRequestId; }
/**
*
<p>The ID of the API request that triggered this operation.</p>
*
*/
inline bool ClientRequestIdHasBeenSet() const { return m_clientRequestIdHasBeenSet; }
/**
*
<p>The ID of the API request that triggered this operation.</p>
*
*/
inline void SetClientRequestId(const Aws::String& value) { m_clientRequestIdHasBeenSet = true; m_clientRequestId = value; }
/**
*
<p>The ID of the API request that triggered this operation.</p>
*
*/
inline void SetClientRequestId(Aws::String&& value) { m_clientRequestIdHasBeenSet = true; m_clientRequestId = std::move(value); }
/**
*
<p>The ID of the API request that triggered this operation.</p>
*
*/
inline void SetClientRequestId(const char* value) { m_clientRequestIdHasBeenSet = true; m_clientRequestId.assign(value); }
/**
*
<p>The ID of the API request that triggered this operation.</p>
*
*/
inline ClusterOperationInfo& WithClientRequestId(const Aws::String& value) { SetClientRequestId(value); return *this;}
/**
*
<p>The ID of the API request that triggered this operation.</p>
*
*/
inline ClusterOperationInfo& WithClientRequestId(Aws::String&& value) { SetClientRequestId(std::move(value)); return *this;}
/**
*
<p>The ID of the API request that triggered this operation.</p>
*
*/
inline ClusterOperationInfo& WithClientRequestId(const char* value) { SetClientRequestId(value); return *this;}
/**
*
<p>ARN of the cluster.</p>
*/
inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
/**
*
<p>ARN of the cluster.</p>
*/
inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
/**
*
<p>ARN of the cluster.</p>
*/
inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
/**
*
<p>ARN of the cluster.</p>
*/
inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
/**
*
<p>ARN of the cluster.</p>
*/
inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
/**
*
<p>ARN of the cluster.</p>
*/
inline ClusterOperationInfo& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
/**
*
<p>ARN of the cluster.</p>
*/
inline ClusterOperationInfo& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
/**
*
<p>ARN of the cluster.</p>
*/
inline ClusterOperationInfo& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
/**
*
<p>The time that the operation was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
*
<p>The time that the operation was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
*
<p>The time that the operation was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
*
<p>The time that the operation was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
*
<p>The time that the operation was created.</p>
*/
inline ClusterOperationInfo& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
*
<p>The time that the operation was created.</p>
*/
inline ClusterOperationInfo& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
*
<p>The time at which the operation finished.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
*
<p>The time at which the operation finished.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
*
<p>The time at which the operation finished.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
*
<p>The time at which the operation finished.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
*
<p>The time at which the operation finished.</p>
*/
inline ClusterOperationInfo& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
*
<p>The time at which the operation finished.</p>
*/
inline ClusterOperationInfo& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
*
<p>Describes the error if the operation fails.</p>
*/
inline const ErrorInfo& GetErrorInfo() const{ return m_errorInfo; }
/**
*
<p>Describes the error if the operation fails.</p>
*/
inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
/**
*
<p>Describes the error if the operation fails.</p>
*/
inline void SetErrorInfo(const ErrorInfo& value) { m_errorInfoHasBeenSet = true; m_errorInfo = value; }
/**
*
<p>Describes the error if the operation fails.</p>
*/
inline void SetErrorInfo(ErrorInfo&& value) { m_errorInfoHasBeenSet = true; m_errorInfo = std::move(value); }
/**
*
<p>Describes the error if the operation fails.</p>
*/
inline ClusterOperationInfo& WithErrorInfo(const ErrorInfo& value) { SetErrorInfo(value); return *this;}
/**
*
<p>Describes the error if the operation fails.</p>
*/
inline ClusterOperationInfo& WithErrorInfo(ErrorInfo&& value) { SetErrorInfo(std::move(value)); return *this;}
/**
*
<p>ARN of the cluster operation.</p>
*/
inline const Aws::String& GetOperationArn() const{ return m_operationArn; }
/**
*
<p>ARN of the cluster operation.</p>
*/
inline bool OperationArnHasBeenSet() const { return m_operationArnHasBeenSet; }
/**
*
<p>ARN of the cluster operation.</p>
*/
inline void SetOperationArn(const Aws::String& value) { m_operationArnHasBeenSet = true; m_operationArn = value; }
/**
*
<p>ARN of the cluster operation.</p>
*/
inline void SetOperationArn(Aws::String&& value) { m_operationArnHasBeenSet = true; m_operationArn = std::move(value); }
/**
*
<p>ARN of the cluster operation.</p>
*/
inline void SetOperationArn(const char* value) { m_operationArnHasBeenSet = true; m_operationArn.assign(value); }
/**
*
<p>ARN of the cluster operation.</p>
*/
inline ClusterOperationInfo& WithOperationArn(const Aws::String& value) { SetOperationArn(value); return *this;}
/**
*
<p>ARN of the cluster operation.</p>
*/
inline ClusterOperationInfo& WithOperationArn(Aws::String&& value) { SetOperationArn(std::move(value)); return *this;}
/**
*
<p>ARN of the cluster operation.</p>
*/
inline ClusterOperationInfo& WithOperationArn(const char* value) { SetOperationArn(value); return *this;}
/**
*
<p>State of the cluster operation.</p>
*/
inline const Aws::String& GetOperationState() const{ return m_operationState; }
/**
*
<p>State of the cluster operation.</p>
*/
inline bool OperationStateHasBeenSet() const { return m_operationStateHasBeenSet; }
/**
*
<p>State of the cluster operation.</p>
*/
inline void SetOperationState(const Aws::String& value) { m_operationStateHasBeenSet = true; m_operationState = value; }
/**
*
<p>State of the cluster operation.</p>
*/
inline void SetOperationState(Aws::String&& value) { m_operationStateHasBeenSet = true; m_operationState = std::move(value); }
/**
*
<p>State of the cluster operation.</p>
*/
inline void SetOperationState(const char* value) { m_operationStateHasBeenSet = true; m_operationState.assign(value); }
/**
*
<p>State of the cluster operation.</p>
*/
inline ClusterOperationInfo& WithOperationState(const Aws::String& value) { SetOperationState(value); return *this;}
/**
*
<p>State of the cluster operation.</p>
*/
inline ClusterOperationInfo& WithOperationState(Aws::String&& value) { SetOperationState(std::move(value)); return *this;}
/**
*
<p>State of the cluster operation.</p>
*/
inline ClusterOperationInfo& WithOperationState(const char* value) { SetOperationState(value); return *this;}
/**
*
<p>Steps completed during the operation.</p>
*/
inline const Aws::Vector<ClusterOperationStep>& GetOperationSteps() const{ return m_operationSteps; }
/**
*
<p>Steps completed during the operation.</p>
*/
inline bool OperationStepsHasBeenSet() const { return m_operationStepsHasBeenSet; }
/**
*
<p>Steps completed during the operation.</p>
*/
inline void SetOperationSteps(const Aws::Vector<ClusterOperationStep>& value) { m_operationStepsHasBeenSet = true; m_operationSteps = value; }
/**
*
<p>Steps completed during the operation.</p>
*/
inline void SetOperationSteps(Aws::Vector<ClusterOperationStep>&& value) { m_operationStepsHasBeenSet = true; m_operationSteps = std::move(value); }
/**
*
<p>Steps completed during the operation.</p>
*/
inline ClusterOperationInfo& WithOperationSteps(const Aws::Vector<ClusterOperationStep>& value) { SetOperationSteps(value); return *this;}
/**
*
<p>Steps completed during the operation.</p>
*/
inline ClusterOperationInfo& WithOperationSteps(Aws::Vector<ClusterOperationStep>&& value) { SetOperationSteps(std::move(value)); return *this;}
/**
*
<p>Steps completed during the operation.</p>
*/
inline ClusterOperationInfo& AddOperationSteps(const ClusterOperationStep& value) { m_operationStepsHasBeenSet = true; m_operationSteps.push_back(value); return *this; }
/**
*
<p>Steps completed during the operation.</p>
*/
inline ClusterOperationInfo& AddOperationSteps(ClusterOperationStep&& value) { m_operationStepsHasBeenSet = true; m_operationSteps.push_back(std::move(value)); return *this; }
/**
*
<p>Type of the cluster operation.</p>
*/
inline const Aws::String& GetOperationType() const{ return m_operationType; }
/**
*
<p>Type of the cluster operation.</p>
*/
inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
/**
*
<p>Type of the cluster operation.</p>
*/
inline void SetOperationType(const Aws::String& value) { m_operationTypeHasBeenSet = true; m_operationType = value; }
/**
*
<p>Type of the cluster operation.</p>
*/
inline void SetOperationType(Aws::String&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::move(value); }
/**
*
<p>Type of the cluster operation.</p>
*/
inline void SetOperationType(const char* value) { m_operationTypeHasBeenSet = true; m_operationType.assign(value); }
/**
*
<p>Type of the cluster operation.</p>
*/
inline ClusterOperationInfo& WithOperationType(const Aws::String& value) { SetOperationType(value); return *this;}
/**
*
<p>Type of the cluster operation.</p>
*/
inline ClusterOperationInfo& WithOperationType(Aws::String&& value) { SetOperationType(std::move(value)); return *this;}
/**
*
<p>Type of the cluster operation.</p>
*/
inline ClusterOperationInfo& WithOperationType(const char* value) { SetOperationType(value); return *this;}
/**
*
<p>Information about cluster attributes before a cluster is
* updated.</p>
*/
inline const MutableClusterInfo& GetSourceClusterInfo() const{ return m_sourceClusterInfo; }
/**
*
<p>Information about cluster attributes before a cluster is
* updated.</p>
*/
inline bool SourceClusterInfoHasBeenSet() const { return m_sourceClusterInfoHasBeenSet; }
/**
*
<p>Information about cluster attributes before a cluster is
* updated.</p>
*/
inline void SetSourceClusterInfo(const MutableClusterInfo& value) { m_sourceClusterInfoHasBeenSet = true; m_sourceClusterInfo = value; }
/**
*
<p>Information about cluster attributes before a cluster is
* updated.</p>
*/
inline void SetSourceClusterInfo(MutableClusterInfo&& value) { m_sourceClusterInfoHasBeenSet = true; m_sourceClusterInfo = std::move(value); }
/**
*
<p>Information about cluster attributes before a cluster is
* updated.</p>
*/
inline ClusterOperationInfo& WithSourceClusterInfo(const MutableClusterInfo& value) { SetSourceClusterInfo(value); return *this;}
/**
*
<p>Information about cluster attributes before a cluster is
* updated.</p>
*/
inline ClusterOperationInfo& WithSourceClusterInfo(MutableClusterInfo&& value) { SetSourceClusterInfo(std::move(value)); return *this;}
/**
*
<p>Information about cluster attributes after a cluster is
* updated.</p>
*/
inline const MutableClusterInfo& GetTargetClusterInfo() const{ return m_targetClusterInfo; }
/**
*
<p>Information about cluster attributes after a cluster is
* updated.</p>
*/
inline bool TargetClusterInfoHasBeenSet() const { return m_targetClusterInfoHasBeenSet; }
/**
*
<p>Information about cluster attributes after a cluster is
* updated.</p>
*/
inline void SetTargetClusterInfo(const MutableClusterInfo& value) { m_targetClusterInfoHasBeenSet = true; m_targetClusterInfo = value; }
/**
*
<p>Information about cluster attributes after a cluster is
* updated.</p>
*/
inline void SetTargetClusterInfo(MutableClusterInfo&& value) { m_targetClusterInfoHasBeenSet = true; m_targetClusterInfo = std::move(value); }
/**
*
<p>Information about cluster attributes after a cluster is
* updated.</p>
*/
inline ClusterOperationInfo& WithTargetClusterInfo(const MutableClusterInfo& value) { SetTargetClusterInfo(value); return *this;}
/**
*
<p>Information about cluster attributes after a cluster is
* updated.</p>
*/
inline ClusterOperationInfo& WithTargetClusterInfo(MutableClusterInfo&& value) { SetTargetClusterInfo(std::move(value)); return *this;}
private:
Aws::String m_clientRequestId;
bool m_clientRequestIdHasBeenSet;
Aws::String m_clusterArn;
bool m_clusterArnHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
ErrorInfo m_errorInfo;
bool m_errorInfoHasBeenSet;
Aws::String m_operationArn;
bool m_operationArnHasBeenSet;
Aws::String m_operationState;
bool m_operationStateHasBeenSet;
Aws::Vector<ClusterOperationStep> m_operationSteps;
bool m_operationStepsHasBeenSet;
Aws::String m_operationType;
bool m_operationTypeHasBeenSet;
MutableClusterInfo m_sourceClusterInfo;
bool m_sourceClusterInfoHasBeenSet;
MutableClusterInfo m_targetClusterInfo;
bool m_targetClusterInfoHasBeenSet;
};
} // namespace Model
} // namespace Kafka
} // namespace Aws