AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EC2SecurityGroup.h
1
6#pragma once
7#include <aws/rds/RDS_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 RDS
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_RDS_API EC2SecurityGroup();
39 AWS_RDS_API EC2SecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
51 inline const Aws::String& GetStatus() const{ return m_status; }
52 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
53 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
54 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
55 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
56 inline EC2SecurityGroup& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
57 inline EC2SecurityGroup& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
58 inline EC2SecurityGroup& WithStatus(const char* value) { SetStatus(value); return *this;}
60
62
65 inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; }
66 inline bool EC2SecurityGroupNameHasBeenSet() const { return m_eC2SecurityGroupNameHasBeenSet; }
67 inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
68 inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = std::move(value); }
69 inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); }
71 inline EC2SecurityGroup& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(std::move(value)); return *this;}
72 inline EC2SecurityGroup& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;}
74
76
79 inline const Aws::String& GetEC2SecurityGroupId() const{ return m_eC2SecurityGroupId; }
80 inline bool EC2SecurityGroupIdHasBeenSet() const { return m_eC2SecurityGroupIdHasBeenSet; }
81 inline void SetEC2SecurityGroupId(const Aws::String& value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId = value; }
82 inline void SetEC2SecurityGroupId(Aws::String&& value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId = std::move(value); }
83 inline void SetEC2SecurityGroupId(const char* value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId.assign(value); }
84 inline EC2SecurityGroup& WithEC2SecurityGroupId(const Aws::String& value) { SetEC2SecurityGroupId(value); return *this;}
85 inline EC2SecurityGroup& WithEC2SecurityGroupId(Aws::String&& value) { SetEC2SecurityGroupId(std::move(value)); return *this;}
86 inline EC2SecurityGroup& WithEC2SecurityGroupId(const char* value) { SetEC2SecurityGroupId(value); return *this;}
88
90
94 inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; }
95 inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; }
96 inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
97 inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = std::move(value); }
98 inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); }
100 inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(std::move(value)); return *this;}
101 inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;}
103 private:
104
105 Aws::String m_status;
106 bool m_statusHasBeenSet = false;
107
108 Aws::String m_eC2SecurityGroupName;
109 bool m_eC2SecurityGroupNameHasBeenSet = false;
110
111 Aws::String m_eC2SecurityGroupId;
112 bool m_eC2SecurityGroupIdHasBeenSet = false;
113
114 Aws::String m_eC2SecurityGroupOwnerId;
115 bool m_eC2SecurityGroupOwnerIdHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace RDS
120} // namespace Aws
EC2SecurityGroup & WithStatus(const char *value)
EC2SecurityGroup & WithEC2SecurityGroupId(const char *value)
const Aws::String & GetStatus() const
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(Aws::String &&value)
void SetEC2SecurityGroupName(Aws::String &&value)
void SetEC2SecurityGroupOwnerId(Aws::String &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetEC2SecurityGroupId() const
void SetEC2SecurityGroupName(const char *value)
void SetEC2SecurityGroupName(const Aws::String &value)
EC2SecurityGroup & WithEC2SecurityGroupName(const char *value)
const Aws::String & GetEC2SecurityGroupOwnerId() const
void SetEC2SecurityGroupId(const Aws::String &value)
void SetEC2SecurityGroupOwnerId(const Aws::String &value)
const Aws::String & GetEC2SecurityGroupName() const
AWS_RDS_API EC2SecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEC2SecurityGroupId(Aws::String &&value)
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(const Aws::String &value)
EC2SecurityGroup & WithEC2SecurityGroupName(Aws::String &&value)
EC2SecurityGroup & WithEC2SecurityGroupId(const Aws::String &value)
EC2SecurityGroup & WithEC2SecurityGroupId(Aws::String &&value)
void SetStatus(const char *value)
EC2SecurityGroup & WithStatus(const Aws::String &value)
void SetStatus(const Aws::String &value)
void SetEC2SecurityGroupId(const char *value)
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(const char *value)
void SetStatus(Aws::String &&value)
EC2SecurityGroup & WithStatus(Aws::String &&value)
EC2SecurityGroup & WithEC2SecurityGroupName(const Aws::String &value)
AWS_RDS_API EC2SecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEC2SecurityGroupOwnerId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream