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

A list of updates being applied to the cluster

See Also:

AWS * API Reference

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

The status of an online resharding operation.

*/ inline const ReshardingStatus& GetResharding() const{ return m_resharding; } /** *

The status of an online resharding operation.

*/ inline bool ReshardingHasBeenSet() const { return m_reshardingHasBeenSet; } /** *

The status of an online resharding operation.

*/ inline void SetResharding(const ReshardingStatus& value) { m_reshardingHasBeenSet = true; m_resharding = value; } /** *

The status of an online resharding operation.

*/ inline void SetResharding(ReshardingStatus&& value) { m_reshardingHasBeenSet = true; m_resharding = std::move(value); } /** *

The status of an online resharding operation.

*/ inline ClusterPendingUpdates& WithResharding(const ReshardingStatus& value) { SetResharding(value); return *this;} /** *

The status of an online resharding operation.

*/ inline ClusterPendingUpdates& WithResharding(ReshardingStatus&& value) { SetResharding(std::move(value)); return *this;} /** *

A list of ACLs associated with the cluster that are being updated

*/ inline const ACLsUpdateStatus& GetACLs() const{ return m_aCLs; } /** *

A list of ACLs associated with the cluster that are being updated

*/ inline bool ACLsHasBeenSet() const { return m_aCLsHasBeenSet; } /** *

A list of ACLs associated with the cluster that are being updated

*/ inline void SetACLs(const ACLsUpdateStatus& value) { m_aCLsHasBeenSet = true; m_aCLs = value; } /** *

A list of ACLs associated with the cluster that are being updated

*/ inline void SetACLs(ACLsUpdateStatus&& value) { m_aCLsHasBeenSet = true; m_aCLs = std::move(value); } /** *

A list of ACLs associated with the cluster that are being updated

*/ inline ClusterPendingUpdates& WithACLs(const ACLsUpdateStatus& value) { SetACLs(value); return *this;} /** *

A list of ACLs associated with the cluster that are being updated

*/ inline ClusterPendingUpdates& WithACLs(ACLsUpdateStatus&& value) { SetACLs(std::move(value)); return *this;} /** *

A list of service updates being applied to the cluster

*/ inline const Aws::Vector& GetServiceUpdates() const{ return m_serviceUpdates; } /** *

A list of service updates being applied to the cluster

*/ inline bool ServiceUpdatesHasBeenSet() const { return m_serviceUpdatesHasBeenSet; } /** *

A list of service updates being applied to the cluster

*/ inline void SetServiceUpdates(const Aws::Vector& value) { m_serviceUpdatesHasBeenSet = true; m_serviceUpdates = value; } /** *

A list of service updates being applied to the cluster

*/ inline void SetServiceUpdates(Aws::Vector&& value) { m_serviceUpdatesHasBeenSet = true; m_serviceUpdates = std::move(value); } /** *

A list of service updates being applied to the cluster

*/ inline ClusterPendingUpdates& WithServiceUpdates(const Aws::Vector& value) { SetServiceUpdates(value); return *this;} /** *

A list of service updates being applied to the cluster

*/ inline ClusterPendingUpdates& WithServiceUpdates(Aws::Vector&& value) { SetServiceUpdates(std::move(value)); return *this;} /** *

A list of service updates being applied to the cluster

*/ inline ClusterPendingUpdates& AddServiceUpdates(const PendingModifiedServiceUpdate& value) { m_serviceUpdatesHasBeenSet = true; m_serviceUpdates.push_back(value); return *this; } /** *

A list of service updates being applied to the cluster

*/ inline ClusterPendingUpdates& AddServiceUpdates(PendingModifiedServiceUpdate&& value) { m_serviceUpdatesHasBeenSet = true; m_serviceUpdates.push_back(std::move(value)); return *this; } private: ReshardingStatus m_resharding; bool m_reshardingHasBeenSet = false; ACLsUpdateStatus m_aCLs; bool m_aCLsHasBeenSet = false; Aws::Vector m_serviceUpdates; bool m_serviceUpdatesHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws