AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EC2SecurityGroup.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 EC2SecurityGroup() = default;
36 AWS_ELASTICACHE_API EC2SecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICACHE_API EC2SecurityGroup& 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& GetStatus() const { return m_status; }
48 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
49 template<typename StatusT = Aws::String>
50 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
51 template<typename StatusT = Aws::String>
52 EC2SecurityGroup& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
54
56
59 inline const Aws::String& GetEC2SecurityGroupName() const { return m_eC2SecurityGroupName; }
60 inline bool EC2SecurityGroupNameHasBeenSet() const { return m_eC2SecurityGroupNameHasBeenSet; }
61 template<typename EC2SecurityGroupNameT = Aws::String>
62 void SetEC2SecurityGroupName(EC2SecurityGroupNameT&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = std::forward<EC2SecurityGroupNameT>(value); }
63 template<typename EC2SecurityGroupNameT = Aws::String>
64 EC2SecurityGroup& WithEC2SecurityGroupName(EC2SecurityGroupNameT&& value) { SetEC2SecurityGroupName(std::forward<EC2SecurityGroupNameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetEC2SecurityGroupOwnerId() const { return m_eC2SecurityGroupOwnerId; }
72 inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; }
73 template<typename EC2SecurityGroupOwnerIdT = Aws::String>
74 void SetEC2SecurityGroupOwnerId(EC2SecurityGroupOwnerIdT&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = std::forward<EC2SecurityGroupOwnerIdT>(value); }
75 template<typename EC2SecurityGroupOwnerIdT = Aws::String>
76 EC2SecurityGroup& WithEC2SecurityGroupOwnerId(EC2SecurityGroupOwnerIdT&& value) { SetEC2SecurityGroupOwnerId(std::forward<EC2SecurityGroupOwnerIdT>(value)); return *this;}
78 private:
79
80 Aws::String m_status;
81 bool m_statusHasBeenSet = false;
82
83 Aws::String m_eC2SecurityGroupName;
84 bool m_eC2SecurityGroupNameHasBeenSet = false;
85
86 Aws::String m_eC2SecurityGroupOwnerId;
87 bool m_eC2SecurityGroupOwnerIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ElastiCache
92} // namespace Aws
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetEC2SecurityGroupName() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetEC2SecurityGroupName(EC2SecurityGroupNameT &&value)
AWS_ELASTICACHE_API EC2SecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API EC2SecurityGroup()=default
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(EC2SecurityGroupOwnerIdT &&value)
EC2SecurityGroup & WithEC2SecurityGroupName(EC2SecurityGroupNameT &&value)
const Aws::String & GetEC2SecurityGroupOwnerId() const
AWS_ELASTICACHE_API EC2SecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEC2SecurityGroupOwnerId(EC2SecurityGroupOwnerIdT &&value)
EC2SecurityGroup & WithStatus(StatusT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream