AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CacheSecurityGroup.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/EC2SecurityGroup.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElastiCache {
22namespace Model {
23
34 public:
35 AWS_ELASTICACHE_API CacheSecurityGroup() = default;
36 AWS_ELASTICACHE_API CacheSecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICACHE_API CacheSecurityGroup& 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
43
46 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
47 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
48 template <typename OwnerIdT = Aws::String>
49 void SetOwnerId(OwnerIdT&& value) {
50 m_ownerIdHasBeenSet = true;
51 m_ownerId = std::forward<OwnerIdT>(value);
52 }
53 template <typename OwnerIdT = Aws::String>
54 CacheSecurityGroup& WithOwnerId(OwnerIdT&& value) {
55 SetOwnerId(std::forward<OwnerIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetCacheSecurityGroupName() const { return m_cacheSecurityGroupName; }
65 inline bool CacheSecurityGroupNameHasBeenSet() const { return m_cacheSecurityGroupNameHasBeenSet; }
66 template <typename CacheSecurityGroupNameT = Aws::String>
67 void SetCacheSecurityGroupName(CacheSecurityGroupNameT&& value) {
68 m_cacheSecurityGroupNameHasBeenSet = true;
69 m_cacheSecurityGroupName = std::forward<CacheSecurityGroupNameT>(value);
70 }
71 template <typename CacheSecurityGroupNameT = Aws::String>
72 CacheSecurityGroup& WithCacheSecurityGroupName(CacheSecurityGroupNameT&& value) {
73 SetCacheSecurityGroupName(std::forward<CacheSecurityGroupNameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template <typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) {
86 m_descriptionHasBeenSet = true;
87 m_description = std::forward<DescriptionT>(value);
88 }
89 template <typename DescriptionT = Aws::String>
90 CacheSecurityGroup& WithDescription(DescriptionT&& value) {
91 SetDescription(std::forward<DescriptionT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::Vector<EC2SecurityGroup>& GetEC2SecurityGroups() const { return m_eC2SecurityGroups; }
102 inline bool EC2SecurityGroupsHasBeenSet() const { return m_eC2SecurityGroupsHasBeenSet; }
103 template <typename EC2SecurityGroupsT = Aws::Vector<EC2SecurityGroup>>
104 void SetEC2SecurityGroups(EC2SecurityGroupsT&& value) {
105 m_eC2SecurityGroupsHasBeenSet = true;
106 m_eC2SecurityGroups = std::forward<EC2SecurityGroupsT>(value);
107 }
108 template <typename EC2SecurityGroupsT = Aws::Vector<EC2SecurityGroup>>
109 CacheSecurityGroup& WithEC2SecurityGroups(EC2SecurityGroupsT&& value) {
110 SetEC2SecurityGroups(std::forward<EC2SecurityGroupsT>(value));
111 return *this;
112 }
113 template <typename EC2SecurityGroupsT = EC2SecurityGroup>
114 CacheSecurityGroup& AddEC2SecurityGroups(EC2SecurityGroupsT&& value) {
115 m_eC2SecurityGroupsHasBeenSet = true;
116 m_eC2SecurityGroups.emplace_back(std::forward<EC2SecurityGroupsT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetARN() const { return m_aRN; }
126 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
127 template <typename ARNT = Aws::String>
128 void SetARN(ARNT&& value) {
129 m_aRNHasBeenSet = true;
130 m_aRN = std::forward<ARNT>(value);
131 }
132 template <typename ARNT = Aws::String>
134 SetARN(std::forward<ARNT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_ownerId;
140
141 Aws::String m_cacheSecurityGroupName;
142
143 Aws::String m_description;
144
145 Aws::Vector<EC2SecurityGroup> m_eC2SecurityGroups;
146
147 Aws::String m_aRN;
148 bool m_ownerIdHasBeenSet = false;
149 bool m_cacheSecurityGroupNameHasBeenSet = false;
150 bool m_descriptionHasBeenSet = false;
151 bool m_eC2SecurityGroupsHasBeenSet = false;
152 bool m_aRNHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace ElastiCache
157} // namespace Aws
const Aws::String & GetCacheSecurityGroupName() const
CacheSecurityGroup & WithDescription(DescriptionT &&value)
CacheSecurityGroup & WithARN(ARNT &&value)
CacheSecurityGroup & WithOwnerId(OwnerIdT &&value)
CacheSecurityGroup & AddEC2SecurityGroups(EC2SecurityGroupsT &&value)
const Aws::Vector< EC2SecurityGroup > & GetEC2SecurityGroups() const
AWS_ELASTICACHE_API CacheSecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CacheSecurityGroup & WithEC2SecurityGroups(EC2SecurityGroupsT &&value)
void SetCacheSecurityGroupName(CacheSecurityGroupNameT &&value)
AWS_ELASTICACHE_API CacheSecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEC2SecurityGroups(EC2SecurityGroupsT &&value)
CacheSecurityGroup & WithCacheSecurityGroupName(CacheSecurityGroupNameT &&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
AWS_ELASTICACHE_API CacheSecurityGroup()=default
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