AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename OwnerIdT = Aws::String>
55 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
56 template<typename OwnerIdT = Aws::String>
57 CacheSecurityGroup& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
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) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = std::forward<CacheSecurityGroupNameT>(value); }
68 template<typename CacheSecurityGroupNameT = Aws::String>
69 CacheSecurityGroup& WithCacheSecurityGroupName(CacheSecurityGroupNameT&& value) { SetCacheSecurityGroupName(std::forward<CacheSecurityGroupNameT>(value)); return *this;}
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template<typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
80 template<typename DescriptionT = Aws::String>
81 CacheSecurityGroup& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
83
85
89 inline const Aws::Vector<EC2SecurityGroup>& GetEC2SecurityGroups() const { return m_eC2SecurityGroups; }
90 inline bool EC2SecurityGroupsHasBeenSet() const { return m_eC2SecurityGroupsHasBeenSet; }
91 template<typename EC2SecurityGroupsT = Aws::Vector<EC2SecurityGroup>>
92 void SetEC2SecurityGroups(EC2SecurityGroupsT&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = std::forward<EC2SecurityGroupsT>(value); }
93 template<typename EC2SecurityGroupsT = Aws::Vector<EC2SecurityGroup>>
94 CacheSecurityGroup& WithEC2SecurityGroups(EC2SecurityGroupsT&& value) { SetEC2SecurityGroups(std::forward<EC2SecurityGroupsT>(value)); return *this;}
95 template<typename EC2SecurityGroupsT = EC2SecurityGroup>
96 CacheSecurityGroup& AddEC2SecurityGroups(EC2SecurityGroupsT&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.emplace_back(std::forward<EC2SecurityGroupsT>(value)); return *this; }
98
100
103 inline const Aws::String& GetARN() const { return m_aRN; }
104 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
105 template<typename ARNT = Aws::String>
106 void SetARN(ARNT&& value) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
107 template<typename ARNT = Aws::String>
108 CacheSecurityGroup& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
110 private:
111
112 Aws::String m_ownerId;
113 bool m_ownerIdHasBeenSet = false;
114
115 Aws::String m_cacheSecurityGroupName;
116 bool m_cacheSecurityGroupNameHasBeenSet = false;
117
118 Aws::String m_description;
119 bool m_descriptionHasBeenSet = false;
120
121 Aws::Vector<EC2SecurityGroup> m_eC2SecurityGroups;
122 bool m_eC2SecurityGroupsHasBeenSet = false;
123
124 Aws::String m_aRN;
125 bool m_aRNHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace ElastiCache
130} // 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