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

The settings to be applied to the Redis replication group, either immediately * or during the next maintenance window.

See Also:

AWS * API Reference

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

The primary cluster ID that is applied immediately (if * --apply-immediately was specified), or during the next maintenance * window.

*/ inline const Aws::String& GetPrimaryClusterId() const{ return m_primaryClusterId; } /** *

The primary cluster ID that is applied immediately (if * --apply-immediately was specified), or during the next maintenance * window.

*/ inline bool PrimaryClusterIdHasBeenSet() const { return m_primaryClusterIdHasBeenSet; } /** *

The primary cluster ID that is applied immediately (if * --apply-immediately was specified), or during the next maintenance * window.

*/ inline void SetPrimaryClusterId(const Aws::String& value) { m_primaryClusterIdHasBeenSet = true; m_primaryClusterId = value; } /** *

The primary cluster ID that is applied immediately (if * --apply-immediately was specified), or during the next maintenance * window.

*/ inline void SetPrimaryClusterId(Aws::String&& value) { m_primaryClusterIdHasBeenSet = true; m_primaryClusterId = std::move(value); } /** *

The primary cluster ID that is applied immediately (if * --apply-immediately was specified), or during the next maintenance * window.

*/ inline void SetPrimaryClusterId(const char* value) { m_primaryClusterIdHasBeenSet = true; m_primaryClusterId.assign(value); } /** *

The primary cluster ID that is applied immediately (if * --apply-immediately was specified), or during the next maintenance * window.

*/ inline ReplicationGroupPendingModifiedValues& WithPrimaryClusterId(const Aws::String& value) { SetPrimaryClusterId(value); return *this;} /** *

The primary cluster ID that is applied immediately (if * --apply-immediately was specified), or during the next maintenance * window.

*/ inline ReplicationGroupPendingModifiedValues& WithPrimaryClusterId(Aws::String&& value) { SetPrimaryClusterId(std::move(value)); return *this;} /** *

The primary cluster ID that is applied immediately (if * --apply-immediately was specified), or during the next maintenance * window.

*/ inline ReplicationGroupPendingModifiedValues& WithPrimaryClusterId(const char* value) { SetPrimaryClusterId(value); return *this;} /** *

Indicates the status of automatic failover for this Redis replication * group.

*/ inline const PendingAutomaticFailoverStatus& GetAutomaticFailoverStatus() const{ return m_automaticFailoverStatus; } /** *

Indicates the status of automatic failover for this Redis replication * group.

*/ inline bool AutomaticFailoverStatusHasBeenSet() const { return m_automaticFailoverStatusHasBeenSet; } /** *

Indicates the status of automatic failover for this Redis replication * group.

*/ inline void SetAutomaticFailoverStatus(const PendingAutomaticFailoverStatus& value) { m_automaticFailoverStatusHasBeenSet = true; m_automaticFailoverStatus = value; } /** *

Indicates the status of automatic failover for this Redis replication * group.

*/ inline void SetAutomaticFailoverStatus(PendingAutomaticFailoverStatus&& value) { m_automaticFailoverStatusHasBeenSet = true; m_automaticFailoverStatus = std::move(value); } /** *

Indicates the status of automatic failover for this Redis replication * group.

*/ inline ReplicationGroupPendingModifiedValues& WithAutomaticFailoverStatus(const PendingAutomaticFailoverStatus& value) { SetAutomaticFailoverStatus(value); return *this;} /** *

Indicates the status of automatic failover for this Redis replication * group.

*/ inline ReplicationGroupPendingModifiedValues& WithAutomaticFailoverStatus(PendingAutomaticFailoverStatus&& value) { SetAutomaticFailoverStatus(std::move(value)); return *this;} /** *

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 ReplicationGroupPendingModifiedValues& WithResharding(const ReshardingStatus& value) { SetResharding(value); return *this;} /** *

The status of an online resharding operation.

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

The auth token status

*/ inline const AuthTokenUpdateStatus& GetAuthTokenStatus() const{ return m_authTokenStatus; } /** *

The auth token status

*/ inline bool AuthTokenStatusHasBeenSet() const { return m_authTokenStatusHasBeenSet; } /** *

The auth token status

*/ inline void SetAuthTokenStatus(const AuthTokenUpdateStatus& value) { m_authTokenStatusHasBeenSet = true; m_authTokenStatus = value; } /** *

The auth token status

*/ inline void SetAuthTokenStatus(AuthTokenUpdateStatus&& value) { m_authTokenStatusHasBeenSet = true; m_authTokenStatus = std::move(value); } /** *

The auth token status

*/ inline ReplicationGroupPendingModifiedValues& WithAuthTokenStatus(const AuthTokenUpdateStatus& value) { SetAuthTokenStatus(value); return *this;} /** *

The auth token status

*/ inline ReplicationGroupPendingModifiedValues& WithAuthTokenStatus(AuthTokenUpdateStatus&& value) { SetAuthTokenStatus(std::move(value)); return *this;} private: Aws::String m_primaryClusterId; bool m_primaryClusterIdHasBeenSet; PendingAutomaticFailoverStatus m_automaticFailoverStatus; bool m_automaticFailoverStatusHasBeenSet; ReshardingStatus m_resharding; bool m_reshardingHasBeenSet; AuthTokenUpdateStatus m_authTokenStatus; bool m_authTokenStatusHasBeenSet; }; } // namespace Model } // namespace ElastiCache } // namespace Aws