AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SecurityGroupMembership.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 SecurityGroupMembership();
36 AWS_ELASTICACHE_API SecurityGroupMembership(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICACHE_API SecurityGroupMembership& 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& GetSecurityGroupId() const{ return m_securityGroupId; }
48 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
49 inline void SetSecurityGroupId(const Aws::String& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = value; }
50 inline void SetSecurityGroupId(Aws::String&& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = std::move(value); }
51 inline void SetSecurityGroupId(const char* value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId.assign(value); }
52 inline SecurityGroupMembership& WithSecurityGroupId(const Aws::String& value) { SetSecurityGroupId(value); return *this;}
53 inline SecurityGroupMembership& WithSecurityGroupId(Aws::String&& value) { SetSecurityGroupId(std::move(value)); return *this;}
54 inline SecurityGroupMembership& WithSecurityGroupId(const char* value) { SetSecurityGroupId(value); return *this;}
56
58
63 inline const Aws::String& GetStatus() const{ return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
66 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
67 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
68 inline SecurityGroupMembership& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
69 inline SecurityGroupMembership& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
70 inline SecurityGroupMembership& WithStatus(const char* value) { SetStatus(value); return *this;}
72 private:
73
74 Aws::String m_securityGroupId;
75 bool m_securityGroupIdHasBeenSet = false;
76
77 Aws::String m_status;
78 bool m_statusHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ElastiCache
83} // namespace Aws
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SecurityGroupMembership & WithStatus(const Aws::String &value)
SecurityGroupMembership & WithSecurityGroupId(Aws::String &&value)
SecurityGroupMembership & WithStatus(const char *value)
SecurityGroupMembership & WithStatus(Aws::String &&value)
AWS_ELASTICACHE_API SecurityGroupMembership(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SecurityGroupMembership & WithSecurityGroupId(const char *value)
SecurityGroupMembership & WithSecurityGroupId(const Aws::String &value)
AWS_ELASTICACHE_API SecurityGroupMembership & operator=(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