AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GlobalNodeGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticache/ElastiCache_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElastiCache {
20namespace Model {
21
29 public:
30 AWS_ELASTICACHE_API GlobalNodeGroup() = default;
31 AWS_ELASTICACHE_API GlobalNodeGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICACHE_API GlobalNodeGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetGlobalNodeGroupId() const { return m_globalNodeGroupId; }
42 inline bool GlobalNodeGroupIdHasBeenSet() const { return m_globalNodeGroupIdHasBeenSet; }
43 template <typename GlobalNodeGroupIdT = Aws::String>
44 void SetGlobalNodeGroupId(GlobalNodeGroupIdT&& value) {
45 m_globalNodeGroupIdHasBeenSet = true;
46 m_globalNodeGroupId = std::forward<GlobalNodeGroupIdT>(value);
47 }
48 template <typename GlobalNodeGroupIdT = Aws::String>
49 GlobalNodeGroup& WithGlobalNodeGroupId(GlobalNodeGroupIdT&& value) {
50 SetGlobalNodeGroupId(std::forward<GlobalNodeGroupIdT>(value));
51 return *this;
52 }
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) {
63 m_slotsHasBeenSet = true;
64 m_slots = std::forward<SlotsT>(value);
65 }
66 template <typename SlotsT = Aws::String>
67 GlobalNodeGroup& WithSlots(SlotsT&& value) {
68 SetSlots(std::forward<SlotsT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_globalNodeGroupId;
74
75 Aws::String m_slots;
76 bool m_globalNodeGroupIdHasBeenSet = false;
77 bool m_slotsHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace ElastiCache
82} // 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