AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CacheSecurityGroupMembership.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 CacheSecurityGroupMembership() = default;
31 AWS_ELASTICACHE_API CacheSecurityGroupMembership(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& GetCacheSecurityGroupName() const { return m_cacheSecurityGroupName; }
42 inline bool CacheSecurityGroupNameHasBeenSet() const { return m_cacheSecurityGroupNameHasBeenSet; }
43 template <typename CacheSecurityGroupNameT = Aws::String>
44 void SetCacheSecurityGroupName(CacheSecurityGroupNameT&& value) {
45 m_cacheSecurityGroupNameHasBeenSet = true;
46 m_cacheSecurityGroupName = std::forward<CacheSecurityGroupNameT>(value);
47 }
48 template <typename CacheSecurityGroupNameT = Aws::String>
49 CacheSecurityGroupMembership& WithCacheSecurityGroupName(CacheSecurityGroupNameT&& value) {
50 SetCacheSecurityGroupName(std::forward<CacheSecurityGroupNameT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 template <typename StatusT = Aws::String>
64 void SetStatus(StatusT&& value) {
65 m_statusHasBeenSet = true;
66 m_status = std::forward<StatusT>(value);
67 }
68 template <typename StatusT = Aws::String>
70 SetStatus(std::forward<StatusT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_cacheSecurityGroupName;
76
77 Aws::String m_status;
78 bool m_cacheSecurityGroupNameHasBeenSet = false;
79 bool m_statusHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace ElastiCache
84} // namespace Aws
CacheSecurityGroupMembership & WithStatus(StatusT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CacheSecurityGroupMembership & WithCacheSecurityGroupName(CacheSecurityGroupNameT &&value)
AWS_ELASTICACHE_API CacheSecurityGroupMembership()=default
AWS_ELASTICACHE_API CacheSecurityGroupMembership & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API CacheSecurityGroupMembership(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream