219 lines
8.0 KiB
C++
219 lines
8.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/elasticache/ElastiCache_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/elasticache/model/PendingAutomaticFailoverStatus.h>
|
|
#include <aws/elasticache/model/ReshardingStatus.h>
|
|
#include <aws/elasticache/model/AuthTokenUpdateStatus.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace ElastiCache
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The settings to be applied to the Redis replication group, either immediately
|
|
* or during the next maintenance window.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ReplicationGroupPendingModifiedValues">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
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;
|
|
|
|
|
|
/**
|
|
* <p>The primary cluster ID that is applied immediately (if
|
|
* <code>--apply-immediately</code> was specified), or during the next maintenance
|
|
* window.</p>
|
|
*/
|
|
inline const Aws::String& GetPrimaryClusterId() const{ return m_primaryClusterId; }
|
|
|
|
/**
|
|
* <p>The primary cluster ID that is applied immediately (if
|
|
* <code>--apply-immediately</code> was specified), or during the next maintenance
|
|
* window.</p>
|
|
*/
|
|
inline bool PrimaryClusterIdHasBeenSet() const { return m_primaryClusterIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The primary cluster ID that is applied immediately (if
|
|
* <code>--apply-immediately</code> was specified), or during the next maintenance
|
|
* window.</p>
|
|
*/
|
|
inline void SetPrimaryClusterId(const Aws::String& value) { m_primaryClusterIdHasBeenSet = true; m_primaryClusterId = value; }
|
|
|
|
/**
|
|
* <p>The primary cluster ID that is applied immediately (if
|
|
* <code>--apply-immediately</code> was specified), or during the next maintenance
|
|
* window.</p>
|
|
*/
|
|
inline void SetPrimaryClusterId(Aws::String&& value) { m_primaryClusterIdHasBeenSet = true; m_primaryClusterId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The primary cluster ID that is applied immediately (if
|
|
* <code>--apply-immediately</code> was specified), or during the next maintenance
|
|
* window.</p>
|
|
*/
|
|
inline void SetPrimaryClusterId(const char* value) { m_primaryClusterIdHasBeenSet = true; m_primaryClusterId.assign(value); }
|
|
|
|
/**
|
|
* <p>The primary cluster ID that is applied immediately (if
|
|
* <code>--apply-immediately</code> was specified), or during the next maintenance
|
|
* window.</p>
|
|
*/
|
|
inline ReplicationGroupPendingModifiedValues& WithPrimaryClusterId(const Aws::String& value) { SetPrimaryClusterId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The primary cluster ID that is applied immediately (if
|
|
* <code>--apply-immediately</code> was specified), or during the next maintenance
|
|
* window.</p>
|
|
*/
|
|
inline ReplicationGroupPendingModifiedValues& WithPrimaryClusterId(Aws::String&& value) { SetPrimaryClusterId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The primary cluster ID that is applied immediately (if
|
|
* <code>--apply-immediately</code> was specified), or during the next maintenance
|
|
* window.</p>
|
|
*/
|
|
inline ReplicationGroupPendingModifiedValues& WithPrimaryClusterId(const char* value) { SetPrimaryClusterId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Indicates the status of automatic failover for this Redis replication
|
|
* group.</p>
|
|
*/
|
|
inline const PendingAutomaticFailoverStatus& GetAutomaticFailoverStatus() const{ return m_automaticFailoverStatus; }
|
|
|
|
/**
|
|
* <p>Indicates the status of automatic failover for this Redis replication
|
|
* group.</p>
|
|
*/
|
|
inline bool AutomaticFailoverStatusHasBeenSet() const { return m_automaticFailoverStatusHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Indicates the status of automatic failover for this Redis replication
|
|
* group.</p>
|
|
*/
|
|
inline void SetAutomaticFailoverStatus(const PendingAutomaticFailoverStatus& value) { m_automaticFailoverStatusHasBeenSet = true; m_automaticFailoverStatus = value; }
|
|
|
|
/**
|
|
* <p>Indicates the status of automatic failover for this Redis replication
|
|
* group.</p>
|
|
*/
|
|
inline void SetAutomaticFailoverStatus(PendingAutomaticFailoverStatus&& value) { m_automaticFailoverStatusHasBeenSet = true; m_automaticFailoverStatus = std::move(value); }
|
|
|
|
/**
|
|
* <p>Indicates the status of automatic failover for this Redis replication
|
|
* group.</p>
|
|
*/
|
|
inline ReplicationGroupPendingModifiedValues& WithAutomaticFailoverStatus(const PendingAutomaticFailoverStatus& value) { SetAutomaticFailoverStatus(value); return *this;}
|
|
|
|
/**
|
|
* <p>Indicates the status of automatic failover for this Redis replication
|
|
* group.</p>
|
|
*/
|
|
inline ReplicationGroupPendingModifiedValues& WithAutomaticFailoverStatus(PendingAutomaticFailoverStatus&& value) { SetAutomaticFailoverStatus(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The status of an online resharding operation.</p>
|
|
*/
|
|
inline const ReshardingStatus& GetResharding() const{ return m_resharding; }
|
|
|
|
/**
|
|
* <p>The status of an online resharding operation.</p>
|
|
*/
|
|
inline bool ReshardingHasBeenSet() const { return m_reshardingHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The status of an online resharding operation.</p>
|
|
*/
|
|
inline void SetResharding(const ReshardingStatus& value) { m_reshardingHasBeenSet = true; m_resharding = value; }
|
|
|
|
/**
|
|
* <p>The status of an online resharding operation.</p>
|
|
*/
|
|
inline void SetResharding(ReshardingStatus&& value) { m_reshardingHasBeenSet = true; m_resharding = std::move(value); }
|
|
|
|
/**
|
|
* <p>The status of an online resharding operation.</p>
|
|
*/
|
|
inline ReplicationGroupPendingModifiedValues& WithResharding(const ReshardingStatus& value) { SetResharding(value); return *this;}
|
|
|
|
/**
|
|
* <p>The status of an online resharding operation.</p>
|
|
*/
|
|
inline ReplicationGroupPendingModifiedValues& WithResharding(ReshardingStatus&& value) { SetResharding(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The auth token status</p>
|
|
*/
|
|
inline const AuthTokenUpdateStatus& GetAuthTokenStatus() const{ return m_authTokenStatus; }
|
|
|
|
/**
|
|
* <p>The auth token status</p>
|
|
*/
|
|
inline bool AuthTokenStatusHasBeenSet() const { return m_authTokenStatusHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The auth token status</p>
|
|
*/
|
|
inline void SetAuthTokenStatus(const AuthTokenUpdateStatus& value) { m_authTokenStatusHasBeenSet = true; m_authTokenStatus = value; }
|
|
|
|
/**
|
|
* <p>The auth token status</p>
|
|
*/
|
|
inline void SetAuthTokenStatus(AuthTokenUpdateStatus&& value) { m_authTokenStatusHasBeenSet = true; m_authTokenStatus = std::move(value); }
|
|
|
|
/**
|
|
* <p>The auth token status</p>
|
|
*/
|
|
inline ReplicationGroupPendingModifiedValues& WithAuthTokenStatus(const AuthTokenUpdateStatus& value) { SetAuthTokenStatus(value); return *this;}
|
|
|
|
/**
|
|
* <p>The auth token status</p>
|
|
*/
|
|
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
|