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

Update action that has failed to be processed for the corresponding * apply/stop request

See Also:

AWS * API Reference

*/ class UnprocessedUpdateAction { public: AWS_ELASTICACHE_API UnprocessedUpdateAction(); AWS_ELASTICACHE_API UnprocessedUpdateAction(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API UnprocessedUpdateAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The replication group ID

*/ inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; } /** *

The replication group ID

*/ inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; } /** *

The replication group ID

*/ inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; } /** *

The replication group ID

*/ inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); } /** *

The replication group ID

*/ inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); } /** *

The replication group ID

*/ inline UnprocessedUpdateAction& WithReplicationGroupId(const Aws::String& value) { SetReplicationGroupId(value); return *this;} /** *

The replication group ID

*/ inline UnprocessedUpdateAction& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;} /** *

The replication group ID

*/ inline UnprocessedUpdateAction& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;} /** *

The ID of the cache cluster

*/ inline const Aws::String& GetCacheClusterId() const{ return m_cacheClusterId; } /** *

The ID of the cache cluster

*/ inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; } /** *

The ID of the cache cluster

*/ inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; } /** *

The ID of the cache cluster

*/ inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::move(value); } /** *

The ID of the cache cluster

*/ inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); } /** *

The ID of the cache cluster

*/ inline UnprocessedUpdateAction& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;} /** *

The ID of the cache cluster

*/ inline UnprocessedUpdateAction& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(std::move(value)); return *this;} /** *

The ID of the cache cluster

*/ inline UnprocessedUpdateAction& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;} /** *

The unique ID of the service update

*/ inline const Aws::String& GetServiceUpdateName() const{ return m_serviceUpdateName; } /** *

The unique ID of the service update

*/ inline bool ServiceUpdateNameHasBeenSet() const { return m_serviceUpdateNameHasBeenSet; } /** *

The unique ID of the service update

*/ inline void SetServiceUpdateName(const Aws::String& value) { m_serviceUpdateNameHasBeenSet = true; m_serviceUpdateName = value; } /** *

The unique ID of the service update

*/ inline void SetServiceUpdateName(Aws::String&& value) { m_serviceUpdateNameHasBeenSet = true; m_serviceUpdateName = std::move(value); } /** *

The unique ID of the service update

*/ inline void SetServiceUpdateName(const char* value) { m_serviceUpdateNameHasBeenSet = true; m_serviceUpdateName.assign(value); } /** *

The unique ID of the service update

*/ inline UnprocessedUpdateAction& WithServiceUpdateName(const Aws::String& value) { SetServiceUpdateName(value); return *this;} /** *

The unique ID of the service update

*/ inline UnprocessedUpdateAction& WithServiceUpdateName(Aws::String&& value) { SetServiceUpdateName(std::move(value)); return *this;} /** *

The unique ID of the service update

*/ inline UnprocessedUpdateAction& WithServiceUpdateName(const char* value) { SetServiceUpdateName(value); return *this;} /** *

The error type for requests that are not processed

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

The error type for requests that are not processed

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

The error type for requests that are not processed

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

The error type for requests that are not processed

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

The error type for requests that are not processed

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

The error type for requests that are not processed

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

The error type for requests that are not processed

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

The error type for requests that are not processed

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

The error message that describes the reason the request was not processed

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

The error message that describes the reason the request was not processed

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

The error message that describes the reason the request was not processed

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

The error message that describes the reason the request was not processed

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

The error message that describes the reason the request was not processed

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

The error message that describes the reason the request was not processed

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

The error message that describes the reason the request was not processed

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

The error message that describes the reason the request was not processed

*/ inline UnprocessedUpdateAction& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_replicationGroupId; bool m_replicationGroupIdHasBeenSet = false; Aws::String m_cacheClusterId; bool m_cacheClusterIdHasBeenSet = false; Aws::String m_serviceUpdateName; bool m_serviceUpdateNameHasBeenSet = false; Aws::String m_errorType; bool m_errorTypeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws