AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GlobalNodeGroup.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElastiCache
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ELASTICACHE_API GlobalNodeGroup() = default;
36 AWS_ELASTICACHE_API GlobalNodeGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICACHE_API GlobalNodeGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetGlobalNodeGroupId() const { return m_globalNodeGroupId; }
48 inline bool GlobalNodeGroupIdHasBeenSet() const { return m_globalNodeGroupIdHasBeenSet; }
49 template<typename GlobalNodeGroupIdT = Aws::String>
50 void SetGlobalNodeGroupId(GlobalNodeGroupIdT&& value) { m_globalNodeGroupIdHasBeenSet = true; m_globalNodeGroupId = std::forward<GlobalNodeGroupIdT>(value); }
51 template<typename GlobalNodeGroupIdT = Aws::String>
52 GlobalNodeGroup& WithGlobalNodeGroupId(GlobalNodeGroupIdT&& value) { SetGlobalNodeGroupId(std::forward<GlobalNodeGroupIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetSlots() const { return m_slots; }
60 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
61 template<typename SlotsT = Aws::String>
62 void SetSlots(SlotsT&& value) { m_slotsHasBeenSet = true; m_slots = std::forward<SlotsT>(value); }
63 template<typename SlotsT = Aws::String>
64 GlobalNodeGroup& WithSlots(SlotsT&& value) { SetSlots(std::forward<SlotsT>(value)); return *this;}
66 private:
67
68 Aws::String m_globalNodeGroupId;
69 bool m_globalNodeGroupIdHasBeenSet = false;
70
71 Aws::String m_slots;
72 bool m_slotsHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace ElastiCache
77} // namespace Aws
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetGlobalNodeGroupId() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICACHE_API GlobalNodeGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API GlobalNodeGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
GlobalNodeGroup & WithGlobalNodeGroupId(GlobalNodeGroupIdT &&value)
GlobalNodeGroup & WithSlots(SlotsT &&value)
void SetGlobalNodeGroupId(GlobalNodeGroupIdT &&value)
const Aws::String & GetSlots() const
AWS_ELASTICACHE_API GlobalNodeGroup()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream