This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-elasticache/include/aws/elasticache/model/GlobalReplicationGroupInfo.h

144 lines
5.3 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace ElastiCache
{
namespace Model
{
/**
* <p>The name of the Global Datastore and role of this replication group in the
* Global Datastore.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/GlobalReplicationGroupInfo">AWS
* API Reference</a></p>
*/
class AWS_ELASTICACHE_API GlobalReplicationGroupInfo
{
public:
GlobalReplicationGroupInfo();
GlobalReplicationGroupInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
GlobalReplicationGroupInfo& 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 name of the Global Datastore</p>
*/
inline const Aws::String& GetGlobalReplicationGroupId() const{ return m_globalReplicationGroupId; }
/**
* <p>The name of the Global Datastore</p>
*/
inline bool GlobalReplicationGroupIdHasBeenSet() const { return m_globalReplicationGroupIdHasBeenSet; }
/**
* <p>The name of the Global Datastore</p>
*/
inline void SetGlobalReplicationGroupId(const Aws::String& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = value; }
/**
* <p>The name of the Global Datastore</p>
*/
inline void SetGlobalReplicationGroupId(Aws::String&& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = std::move(value); }
/**
* <p>The name of the Global Datastore</p>
*/
inline void SetGlobalReplicationGroupId(const char* value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId.assign(value); }
/**
* <p>The name of the Global Datastore</p>
*/
inline GlobalReplicationGroupInfo& WithGlobalReplicationGroupId(const Aws::String& value) { SetGlobalReplicationGroupId(value); return *this;}
/**
* <p>The name of the Global Datastore</p>
*/
inline GlobalReplicationGroupInfo& WithGlobalReplicationGroupId(Aws::String&& value) { SetGlobalReplicationGroupId(std::move(value)); return *this;}
/**
* <p>The name of the Global Datastore</p>
*/
inline GlobalReplicationGroupInfo& WithGlobalReplicationGroupId(const char* value) { SetGlobalReplicationGroupId(value); return *this;}
/**
* <p>The role of the replication group in a Global Datastore. Can be primary or
* secondary.</p>
*/
inline const Aws::String& GetGlobalReplicationGroupMemberRole() const{ return m_globalReplicationGroupMemberRole; }
/**
* <p>The role of the replication group in a Global Datastore. Can be primary or
* secondary.</p>
*/
inline bool GlobalReplicationGroupMemberRoleHasBeenSet() const { return m_globalReplicationGroupMemberRoleHasBeenSet; }
/**
* <p>The role of the replication group in a Global Datastore. Can be primary or
* secondary.</p>
*/
inline void SetGlobalReplicationGroupMemberRole(const Aws::String& value) { m_globalReplicationGroupMemberRoleHasBeenSet = true; m_globalReplicationGroupMemberRole = value; }
/**
* <p>The role of the replication group in a Global Datastore. Can be primary or
* secondary.</p>
*/
inline void SetGlobalReplicationGroupMemberRole(Aws::String&& value) { m_globalReplicationGroupMemberRoleHasBeenSet = true; m_globalReplicationGroupMemberRole = std::move(value); }
/**
* <p>The role of the replication group in a Global Datastore. Can be primary or
* secondary.</p>
*/
inline void SetGlobalReplicationGroupMemberRole(const char* value) { m_globalReplicationGroupMemberRoleHasBeenSet = true; m_globalReplicationGroupMemberRole.assign(value); }
/**
* <p>The role of the replication group in a Global Datastore. Can be primary or
* secondary.</p>
*/
inline GlobalReplicationGroupInfo& WithGlobalReplicationGroupMemberRole(const Aws::String& value) { SetGlobalReplicationGroupMemberRole(value); return *this;}
/**
* <p>The role of the replication group in a Global Datastore. Can be primary or
* secondary.</p>
*/
inline GlobalReplicationGroupInfo& WithGlobalReplicationGroupMemberRole(Aws::String&& value) { SetGlobalReplicationGroupMemberRole(std::move(value)); return *this;}
/**
* <p>The role of the replication group in a Global Datastore. Can be primary or
* secondary.</p>
*/
inline GlobalReplicationGroupInfo& WithGlobalReplicationGroupMemberRole(const char* value) { SetGlobalReplicationGroupMemberRole(value); return *this;}
private:
Aws::String m_globalReplicationGroupId;
bool m_globalReplicationGroupIdHasBeenSet;
Aws::String m_globalReplicationGroupMemberRole;
bool m_globalReplicationGroupMemberRoleHasBeenSet;
};
} // namespace Model
} // namespace ElastiCache
} // namespace Aws