AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EC2SecurityGroup.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/elasticache/ElastiCache_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElastiCache {
20namespace Model {
21
29 public:
30 AWS_ELASTICACHE_API EC2SecurityGroup() = default;
31 AWS_ELASTICACHE_API EC2SecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICACHE_API EC2SecurityGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetStatus() const { return m_status; }
42 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
43 template <typename StatusT = Aws::String>
44 void SetStatus(StatusT&& value) {
45 m_statusHasBeenSet = true;
46 m_status = std::forward<StatusT>(value);
47 }
48 template <typename StatusT = Aws::String>
49 EC2SecurityGroup& WithStatus(StatusT&& value) {
50 SetStatus(std::forward<StatusT>(value));
51 return *this;
52 }
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) {
63 m_eC2SecurityGroupNameHasBeenSet = true;
64 m_eC2SecurityGroupName = std::forward<EC2SecurityGroupNameT>(value);
65 }
66 template <typename EC2SecurityGroupNameT = Aws::String>
67 EC2SecurityGroup& WithEC2SecurityGroupName(EC2SecurityGroupNameT&& value) {
68 SetEC2SecurityGroupName(std::forward<EC2SecurityGroupNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetEC2SecurityGroupOwnerId() const { return m_eC2SecurityGroupOwnerId; }
78 inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; }
79 template <typename EC2SecurityGroupOwnerIdT = Aws::String>
80 void SetEC2SecurityGroupOwnerId(EC2SecurityGroupOwnerIdT&& value) {
81 m_eC2SecurityGroupOwnerIdHasBeenSet = true;
82 m_eC2SecurityGroupOwnerId = std::forward<EC2SecurityGroupOwnerIdT>(value);
83 }
84 template <typename EC2SecurityGroupOwnerIdT = Aws::String>
85 EC2SecurityGroup& WithEC2SecurityGroupOwnerId(EC2SecurityGroupOwnerIdT&& value) {
86 SetEC2SecurityGroupOwnerId(std::forward<EC2SecurityGroupOwnerIdT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_status;
92
93 Aws::String m_eC2SecurityGroupName;
94
95 Aws::String m_eC2SecurityGroupOwnerId;
96 bool m_statusHasBeenSet = false;
97 bool m_eC2SecurityGroupNameHasBeenSet = false;
98 bool m_eC2SecurityGroupOwnerIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace ElastiCache
103} // 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