AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename StatusT = Aws::String>
51 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
52 template<typename StatusT = Aws::String>
53 EC2SecurityGroup& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
55
57
60 inline const Aws::String& GetEC2SecurityGroupName() const { return m_eC2SecurityGroupName; }
61 inline bool EC2SecurityGroupNameHasBeenSet() const { return m_eC2SecurityGroupNameHasBeenSet; }
62 template<typename EC2SecurityGroupNameT = Aws::String>
63 void SetEC2SecurityGroupName(EC2SecurityGroupNameT&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = std::forward<EC2SecurityGroupNameT>(value); }
64 template<typename EC2SecurityGroupNameT = Aws::String>
65 EC2SecurityGroup& WithEC2SecurityGroupName(EC2SecurityGroupNameT&& value) { SetEC2SecurityGroupName(std::forward<EC2SecurityGroupNameT>(value)); return *this;}
67
69
73 inline const Aws::String& GetEC2SecurityGroupOwnerId() const { return m_eC2SecurityGroupOwnerId; }
74 inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; }
75 template<typename EC2SecurityGroupOwnerIdT = Aws::String>
76 void SetEC2SecurityGroupOwnerId(EC2SecurityGroupOwnerIdT&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = std::forward<EC2SecurityGroupOwnerIdT>(value); }
77 template<typename EC2SecurityGroupOwnerIdT = Aws::String>
78 EC2SecurityGroup& WithEC2SecurityGroupOwnerId(EC2SecurityGroupOwnerIdT&& value) { SetEC2SecurityGroupOwnerId(std::forward<EC2SecurityGroupOwnerIdT>(value)); return *this;}
80
82
85 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 template<typename TagsT = Aws::Vector<Tag>>
88 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
89 template<typename TagsT = Aws::Vector<Tag>>
90 EC2SecurityGroup& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
91 template<typename TagsT = Tag>
92 EC2SecurityGroup& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
94 private:
95
96 Aws::String m_status;
97 bool m_statusHasBeenSet = false;
98
99 Aws::String m_eC2SecurityGroupName;
100 bool m_eC2SecurityGroupNameHasBeenSet = false;
101
102 Aws::String m_eC2SecurityGroupOwnerId;
103 bool m_eC2SecurityGroupOwnerIdHasBeenSet = false;
104
105 Aws::Vector<Tag> m_tags;
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Redshift
111} // namespace Aws
EC2SecurityGroup & AddTags(TagsT &&value)
EC2SecurityGroup & WithTags(TagsT &&value)
EC2SecurityGroup & WithEC2SecurityGroupName(EC2SecurityGroupNameT &&value)
void SetEC2SecurityGroupOwnerId(EC2SecurityGroupOwnerIdT &&value)
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(EC2SecurityGroupOwnerIdT &&value)
void SetEC2SecurityGroupName(EC2SecurityGroupNameT &&value)
const Aws::String & GetStatus() const
AWS_REDSHIFT_API EC2SecurityGroup()=default
const Aws::String & GetEC2SecurityGroupName() const
const Aws::Vector< Tag > & GetTags() const
EC2SecurityGroup & WithStatus(StatusT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetEC2SecurityGroupOwnerId() const
AWS_REDSHIFT_API EC2SecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_REDSHIFT_API EC2SecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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