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

A cluster whose updates have failed

See Also:

AWS * API Reference

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

The name of the cluster

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

The name of the cluster

*/ inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } /** *

The name of the cluster

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

The name of the cluster

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

The name of the cluster

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

The name of the cluster

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

The name of the cluster

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

The name of the cluster

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

The error type associated with the update failure

*/ inline const Aws::String& GetErrorType() const{ return m_errorType; } /** *

The error type associated with the update failure

*/ inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; } /** *

The error type associated with the update failure

*/ inline void SetErrorType(const Aws::String& value) { m_errorTypeHasBeenSet = true; m_errorType = value; } /** *

The error type associated with the update failure

*/ inline void SetErrorType(Aws::String&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::move(value); } /** *

The error type associated with the update failure

*/ inline void SetErrorType(const char* value) { m_errorTypeHasBeenSet = true; m_errorType.assign(value); } /** *

The error type associated with the update failure

*/ inline UnprocessedCluster& WithErrorType(const Aws::String& value) { SetErrorType(value); return *this;} /** *

The error type associated with the update failure

*/ inline UnprocessedCluster& WithErrorType(Aws::String&& value) { SetErrorType(std::move(value)); return *this;} /** *

The error type associated with the update failure

*/ inline UnprocessedCluster& WithErrorType(const char* value) { SetErrorType(value); return *this;} /** *

The error message associated with the update failure

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The error message associated with the update failure

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

The error message associated with the update failure

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

The error message associated with the update failure

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

The error message associated with the update failure

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

The error message associated with the update failure

*/ inline UnprocessedCluster& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The error message associated with the update failure

*/ inline UnprocessedCluster& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The error message associated with the update failure

*/ inline UnprocessedCluster& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_clusterName; bool m_clusterNameHasBeenSet = false; Aws::String m_errorType; bool m_errorTypeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws