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/redshift/Redshift_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/redshift/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_REDSHIFT_API EC2SecurityGroup();
37 AWS_REDSHIFT_API EC2SecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_REDSHIFT_API EC2SecurityGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetStatus() const{ return m_status; }
49 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
51 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
52 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
53 inline EC2SecurityGroup& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
54 inline EC2SecurityGroup& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
55 inline EC2SecurityGroup& WithStatus(const char* value) { SetStatus(value); return *this;}
57
59
62 inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; }
63 inline bool EC2SecurityGroupNameHasBeenSet() const { return m_eC2SecurityGroupNameHasBeenSet; }
64 inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
65 inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = std::move(value); }
66 inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); }
68 inline EC2SecurityGroup& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(std::move(value)); return *this;}
69 inline EC2SecurityGroup& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;}
71
73
77 inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; }
78 inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; }
79 inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
80 inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = std::move(value); }
81 inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); }
83 inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(std::move(value)); return *this;}
84 inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;}
86
88
91 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
95 inline EC2SecurityGroup& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
96 inline EC2SecurityGroup& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
97 inline EC2SecurityGroup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
98 inline EC2SecurityGroup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_status;
103 bool m_statusHasBeenSet = false;
104
105 Aws::String m_eC2SecurityGroupName;
106 bool m_eC2SecurityGroupNameHasBeenSet = false;
107
108 Aws::String m_eC2SecurityGroupOwnerId;
109 bool m_eC2SecurityGroupOwnerIdHasBeenSet = false;
110
111 Aws::Vector<Tag> m_tags;
112 bool m_tagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Redshift
117} // namespace Aws
void SetEC2SecurityGroupName(const Aws::String &value)
EC2SecurityGroup & WithStatus(const char *value)
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(const Aws::String &value)
EC2SecurityGroup & WithEC2SecurityGroupName(const Aws::String &value)
EC2SecurityGroup & WithEC2SecurityGroupName(Aws::String &&value)
void SetEC2SecurityGroupOwnerId(const Aws::String &value)
const Aws::String & GetStatus() const
EC2SecurityGroup & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
EC2SecurityGroup & WithStatus(Aws::String &&value)
const Aws::String & GetEC2SecurityGroupName() const
const Aws::Vector< Tag > & GetTags() const
EC2SecurityGroup & AddTags(Tag &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetEC2SecurityGroupOwnerId() const
EC2SecurityGroup & WithTags(Aws::Vector< Tag > &&value)
EC2SecurityGroup & WithEC2SecurityGroupName(const char *value)
void SetEC2SecurityGroupOwnerId(const char *value)
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(const char *value)
EC2SecurityGroup & WithStatus(const Aws::String &value)
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(Aws::String &&value)
EC2SecurityGroup & AddTags(const Tag &value)
AWS_REDSHIFT_API EC2SecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTags(Aws::Vector< Tag > &&value)
void SetStatus(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetEC2SecurityGroupName(const char *value)
AWS_REDSHIFT_API EC2SecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEC2SecurityGroupOwnerId(Aws::String &&value)
void SetEC2SecurityGroupName(Aws::String &&value)
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