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>
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>
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>
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>
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>>
95 template<
typename EC2SecurityGroupsT = EC2SecurityGroup>
96 CacheSecurityGroup&
AddEC2SecurityGroups(EC2SecurityGroupsT&& value) { m_eC2SecurityGroupsHasBeenSet =
true; m_eC2SecurityGroups.emplace_back(std::forward<EC2SecurityGroupsT>(value));
return *
this; }
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>
113 bool m_ownerIdHasBeenSet =
false;
116 bool m_cacheSecurityGroupNameHasBeenSet =
false;
119 bool m_descriptionHasBeenSet =
false;
122 bool m_eC2SecurityGroupsHasBeenSet =
false;
125 bool m_aRNHasBeenSet =
false;
const Aws::String & GetOwnerId() const
const Aws::String & GetCacheSecurityGroupName() const
CacheSecurityGroup & WithDescription(DescriptionT &&value)
CacheSecurityGroup & WithARN(ARNT &&value)
CacheSecurityGroup & WithOwnerId(OwnerIdT &&value)
void SetOwnerId(OwnerIdT &&value)
CacheSecurityGroup & AddEC2SecurityGroups(EC2SecurityGroupsT &&value)
bool ARNHasBeenSet() const
bool CacheSecurityGroupNameHasBeenSet() const
const Aws::Vector< EC2SecurityGroup > & GetEC2SecurityGroups() const
void SetARN(ARNT &&value)
AWS_ELASTICACHE_API CacheSecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CacheSecurityGroup & WithEC2SecurityGroups(EC2SecurityGroupsT &&value)
void SetCacheSecurityGroupName(CacheSecurityGroupNameT &&value)
bool OwnerIdHasBeenSet() const
bool EC2SecurityGroupsHasBeenSet() const
void SetDescription(DescriptionT &&value)
AWS_ELASTICACHE_API CacheSecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetARN() const
void SetEC2SecurityGroups(EC2SecurityGroupsT &&value)
bool DescriptionHasBeenSet() const
CacheSecurityGroup & WithCacheSecurityGroupName(CacheSecurityGroupNameT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetDescription() 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