AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CacheSecurityGroup.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/model/EC2SecurityGroup.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElastiCache
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_ELASTICACHE_API CacheSecurityGroup();
41 AWS_ELASTICACHE_API CacheSecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_ELASTICACHE_API CacheSecurityGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
53 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
54 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
55 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
56 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
57 inline CacheSecurityGroup& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
58 inline CacheSecurityGroup& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
59 inline CacheSecurityGroup& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
61
63
66 inline const Aws::String& GetCacheSecurityGroupName() const{ return m_cacheSecurityGroupName; }
67 inline bool CacheSecurityGroupNameHasBeenSet() const { return m_cacheSecurityGroupNameHasBeenSet; }
68 inline void SetCacheSecurityGroupName(const Aws::String& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = value; }
69 inline void SetCacheSecurityGroupName(Aws::String&& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = std::move(value); }
70 inline void SetCacheSecurityGroupName(const char* value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName.assign(value); }
72 inline CacheSecurityGroup& WithCacheSecurityGroupName(Aws::String&& value) { SetCacheSecurityGroupName(std::move(value)); return *this;}
73 inline CacheSecurityGroup& WithCacheSecurityGroupName(const char* value) { SetCacheSecurityGroupName(value); return *this;}
75
77
80 inline const Aws::String& GetDescription() const{ return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
83 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
84 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
85 inline CacheSecurityGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
86 inline CacheSecurityGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
87 inline CacheSecurityGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
89
91
95 inline const Aws::Vector<EC2SecurityGroup>& GetEC2SecurityGroups() const{ return m_eC2SecurityGroups; }
96 inline bool EC2SecurityGroupsHasBeenSet() const { return m_eC2SecurityGroupsHasBeenSet; }
97 inline void SetEC2SecurityGroups(const Aws::Vector<EC2SecurityGroup>& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = value; }
98 inline void SetEC2SecurityGroups(Aws::Vector<EC2SecurityGroup>&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = std::move(value); }
101 inline CacheSecurityGroup& AddEC2SecurityGroups(const EC2SecurityGroup& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(value); return *this; }
102 inline CacheSecurityGroup& AddEC2SecurityGroups(EC2SecurityGroup&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(std::move(value)); return *this; }
104
106
109 inline const Aws::String& GetARN() const{ return m_aRN; }
110 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
111 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
112 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
113 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
114 inline CacheSecurityGroup& WithARN(const Aws::String& value) { SetARN(value); return *this;}
115 inline CacheSecurityGroup& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
116 inline CacheSecurityGroup& WithARN(const char* value) { SetARN(value); return *this;}
118 private:
119
120 Aws::String m_ownerId;
121 bool m_ownerIdHasBeenSet = false;
122
123 Aws::String m_cacheSecurityGroupName;
124 bool m_cacheSecurityGroupNameHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128
129 Aws::Vector<EC2SecurityGroup> m_eC2SecurityGroups;
130 bool m_eC2SecurityGroupsHasBeenSet = false;
131
132 Aws::String m_aRN;
133 bool m_aRNHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace ElastiCache
138} // namespace Aws
const Aws::String & GetCacheSecurityGroupName() const
CacheSecurityGroup & WithOwnerId(const Aws::String &value)
CacheSecurityGroup & WithARN(const char *value)
CacheSecurityGroup & WithEC2SecurityGroups(Aws::Vector< EC2SecurityGroup > &&value)
CacheSecurityGroup & WithDescription(Aws::String &&value)
CacheSecurityGroup & WithEC2SecurityGroups(const Aws::Vector< EC2SecurityGroup > &value)
CacheSecurityGroup & WithOwnerId(const char *value)
CacheSecurityGroup & AddEC2SecurityGroups(const EC2SecurityGroup &value)
void SetCacheSecurityGroupName(Aws::String &&value)
const Aws::Vector< EC2SecurityGroup > & GetEC2SecurityGroups() const
CacheSecurityGroup & WithDescription(const Aws::String &value)
void SetDescription(const Aws::String &value)
CacheSecurityGroup & WithCacheSecurityGroupName(const Aws::String &value)
CacheSecurityGroup & WithARN(const Aws::String &value)
AWS_ELASTICACHE_API CacheSecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CacheSecurityGroup & WithCacheSecurityGroupName(const char *value)
void SetCacheSecurityGroupName(const Aws::String &value)
CacheSecurityGroup & WithCacheSecurityGroupName(Aws::String &&value)
CacheSecurityGroup & AddEC2SecurityGroups(EC2SecurityGroup &&value)
AWS_ELASTICACHE_API CacheSecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEC2SecurityGroups(const Aws::Vector< EC2SecurityGroup > &value)
CacheSecurityGroup & WithOwnerId(Aws::String &&value)
CacheSecurityGroup & WithARN(Aws::String &&value)
void SetEC2SecurityGroups(Aws::Vector< EC2SecurityGroup > &&value)
CacheSecurityGroup & WithDescription(const char *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
void SetOwnerId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream