/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returns information about a cluster operation.See
* Also:
AWS
* API Reference
ARN of the cluster.
*/ inline const Aws::String& GetClusterArn() const{ return m_clusterArn; } /** *ARN of the cluster.
*/ inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; } /** *ARN of the cluster.
*/ inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; } /** *ARN of the cluster.
*/ inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); } /** *ARN of the cluster.
*/ inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); } /** *ARN of the cluster.
*/ inline ClusterOperationV2& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;} /** *ARN of the cluster.
*/ inline ClusterOperationV2& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;} /** *ARN of the cluster.
*/ inline ClusterOperationV2& WithClusterArn(const char* value) { SetClusterArn(value); return *this;} /** *Type of the backend cluster.
*/ inline const ClusterType& GetClusterType() const{ return m_clusterType; } /** *Type of the backend cluster.
*/ inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; } /** *Type of the backend cluster.
*/ inline void SetClusterType(const ClusterType& value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; } /** *Type of the backend cluster.
*/ inline void SetClusterType(ClusterType&& value) { m_clusterTypeHasBeenSet = true; m_clusterType = std::move(value); } /** *Type of the backend cluster.
*/ inline ClusterOperationV2& WithClusterType(const ClusterType& value) { SetClusterType(value); return *this;} /** *Type of the backend cluster.
*/ inline ClusterOperationV2& WithClusterType(ClusterType&& value) { SetClusterType(std::move(value)); return *this;} /** *The time at which operation was started.
*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *The time at which operation was started.
*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *The time at which operation was started.
*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *The time at which operation was started.
*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *The time at which operation was started.
*/ inline ClusterOperationV2& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *The time at which operation was started.
*/ inline ClusterOperationV2& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *The time at which the operation finished.
*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *The time at which the operation finished.
*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *The time at which the operation finished.
*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *The time at which the operation finished.
*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *The time at which the operation finished.
*/ inline ClusterOperationV2& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *The time at which the operation finished.
*/ inline ClusterOperationV2& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *If cluster operation failed from an error, it describes the * error.
*/ inline const ErrorInfo& GetErrorInfo() const{ return m_errorInfo; } /** *If cluster operation failed from an error, it describes the * error.
*/ inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; } /** *If cluster operation failed from an error, it describes the * error.
*/ inline void SetErrorInfo(const ErrorInfo& value) { m_errorInfoHasBeenSet = true; m_errorInfo = value; } /** *If cluster operation failed from an error, it describes the * error.
*/ inline void SetErrorInfo(ErrorInfo&& value) { m_errorInfoHasBeenSet = true; m_errorInfo = std::move(value); } /** *If cluster operation failed from an error, it describes the * error.
*/ inline ClusterOperationV2& WithErrorInfo(const ErrorInfo& value) { SetErrorInfo(value); return *this;} /** *If cluster operation failed from an error, it describes the * error.
*/ inline ClusterOperationV2& WithErrorInfo(ErrorInfo&& value) { SetErrorInfo(std::move(value)); return *this;} /** *ARN of the cluster operation.
*/ inline const Aws::String& GetOperationArn() const{ return m_operationArn; } /** *ARN of the cluster operation.
*/ inline bool OperationArnHasBeenSet() const { return m_operationArnHasBeenSet; } /** *ARN of the cluster operation.
*/ inline void SetOperationArn(const Aws::String& value) { m_operationArnHasBeenSet = true; m_operationArn = value; } /** *ARN of the cluster operation.
*/ inline void SetOperationArn(Aws::String&& value) { m_operationArnHasBeenSet = true; m_operationArn = std::move(value); } /** *ARN of the cluster operation.
*/ inline void SetOperationArn(const char* value) { m_operationArnHasBeenSet = true; m_operationArn.assign(value); } /** *ARN of the cluster operation.
*/ inline ClusterOperationV2& WithOperationArn(const Aws::String& value) { SetOperationArn(value); return *this;} /** *ARN of the cluster operation.
*/ inline ClusterOperationV2& WithOperationArn(Aws::String&& value) { SetOperationArn(std::move(value)); return *this;} /** *ARN of the cluster operation.
*/ inline ClusterOperationV2& WithOperationArn(const char* value) { SetOperationArn(value); return *this;} /** *State of the cluster operation.
*/ inline const Aws::String& GetOperationState() const{ return m_operationState; } /** *State of the cluster operation.
*/ inline bool OperationStateHasBeenSet() const { return m_operationStateHasBeenSet; } /** *State of the cluster operation.
*/ inline void SetOperationState(const Aws::String& value) { m_operationStateHasBeenSet = true; m_operationState = value; } /** *State of the cluster operation.
*/ inline void SetOperationState(Aws::String&& value) { m_operationStateHasBeenSet = true; m_operationState = std::move(value); } /** *State of the cluster operation.
*/ inline void SetOperationState(const char* value) { m_operationStateHasBeenSet = true; m_operationState.assign(value); } /** *State of the cluster operation.
*/ inline ClusterOperationV2& WithOperationState(const Aws::String& value) { SetOperationState(value); return *this;} /** *State of the cluster operation.
*/ inline ClusterOperationV2& WithOperationState(Aws::String&& value) { SetOperationState(std::move(value)); return *this;} /** *State of the cluster operation.
*/ inline ClusterOperationV2& WithOperationState(const char* value) { SetOperationState(value); return *this;} /** *Type of the cluster operation.
*/ inline const Aws::String& GetOperationType() const{ return m_operationType; } /** *Type of the cluster operation.
*/ inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; } /** *Type of the cluster operation.
*/ inline void SetOperationType(const Aws::String& value) { m_operationTypeHasBeenSet = true; m_operationType = value; } /** *Type of the cluster operation.
*/ inline void SetOperationType(Aws::String&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::move(value); } /** *Type of the cluster operation.
*/ inline void SetOperationType(const char* value) { m_operationTypeHasBeenSet = true; m_operationType.assign(value); } /** *Type of the cluster operation.
*/ inline ClusterOperationV2& WithOperationType(const Aws::String& value) { SetOperationType(value); return *this;} /** *Type of the cluster operation.
*/ inline ClusterOperationV2& WithOperationType(Aws::String&& value) { SetOperationType(std::move(value)); return *this;} /** *Type of the cluster operation.
*/ inline ClusterOperationV2& WithOperationType(const char* value) { SetOperationType(value); return *this;} /** *Properties of a provisioned cluster.
*/ inline const ClusterOperationV2Provisioned& GetProvisioned() const{ return m_provisioned; } /** *Properties of a provisioned cluster.
*/ inline bool ProvisionedHasBeenSet() const { return m_provisionedHasBeenSet; } /** *Properties of a provisioned cluster.
*/ inline void SetProvisioned(const ClusterOperationV2Provisioned& value) { m_provisionedHasBeenSet = true; m_provisioned = value; } /** *Properties of a provisioned cluster.
*/ inline void SetProvisioned(ClusterOperationV2Provisioned&& value) { m_provisionedHasBeenSet = true; m_provisioned = std::move(value); } /** *Properties of a provisioned cluster.
*/ inline ClusterOperationV2& WithProvisioned(const ClusterOperationV2Provisioned& value) { SetProvisioned(value); return *this;} /** *Properties of a provisioned cluster.
*/ inline ClusterOperationV2& WithProvisioned(ClusterOperationV2Provisioned&& value) { SetProvisioned(std::move(value)); return *this;} /** *Properties of a serverless cluster.
*/ inline const ClusterOperationV2Serverless& GetServerless() const{ return m_serverless; } /** *Properties of a serverless cluster.
*/ inline bool ServerlessHasBeenSet() const { return m_serverlessHasBeenSet; } /** *Properties of a serverless cluster.
*/ inline void SetServerless(const ClusterOperationV2Serverless& value) { m_serverlessHasBeenSet = true; m_serverless = value; } /** *Properties of a serverless cluster.
*/ inline void SetServerless(ClusterOperationV2Serverless&& value) { m_serverlessHasBeenSet = true; m_serverless = std::move(value); } /** *Properties of a serverless cluster.
*/ inline ClusterOperationV2& WithServerless(const ClusterOperationV2Serverless& value) { SetServerless(value); return *this;} /** *Properties of a serverless cluster.
*/ inline ClusterOperationV2& WithServerless(ClusterOperationV2Serverless&& value) { SetServerless(std::move(value)); return *this;} private: Aws::String m_clusterArn; bool m_clusterArnHasBeenSet = false; ClusterType m_clusterType; bool m_clusterTypeHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; ErrorInfo m_errorInfo; bool m_errorInfoHasBeenSet = false; Aws::String m_operationArn; bool m_operationArnHasBeenSet = false; Aws::String m_operationState; bool m_operationStateHasBeenSet = false; Aws::String m_operationType; bool m_operationTypeHasBeenSet = false; ClusterOperationV2Provisioned m_provisioned; bool m_provisionedHasBeenSet = false; ClusterOperationV2Serverless m_serverless; bool m_serverlessHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws