AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SecurityGroupForVpc.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
31 public:
32 AWS_EC2_API SecurityGroupForVpc() = default;
33 AWS_EC2_API SecurityGroupForVpc(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetDescription() const { return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 template <typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) {
47 m_descriptionHasBeenSet = true;
48 m_description = std::forward<DescriptionT>(value);
49 }
50 template <typename DescriptionT = Aws::String>
51 SecurityGroupForVpc& WithDescription(DescriptionT&& value) {
52 SetDescription(std::forward<DescriptionT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetGroupName() const { return m_groupName; }
62 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
63 template <typename GroupNameT = Aws::String>
64 void SetGroupName(GroupNameT&& value) {
65 m_groupNameHasBeenSet = true;
66 m_groupName = std::forward<GroupNameT>(value);
67 }
68 template <typename GroupNameT = Aws::String>
69 SecurityGroupForVpc& WithGroupName(GroupNameT&& value) {
70 SetGroupName(std::forward<GroupNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
80 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
81 template <typename OwnerIdT = Aws::String>
82 void SetOwnerId(OwnerIdT&& value) {
83 m_ownerIdHasBeenSet = true;
84 m_ownerId = std::forward<OwnerIdT>(value);
85 }
86 template <typename OwnerIdT = Aws::String>
87 SecurityGroupForVpc& WithOwnerId(OwnerIdT&& value) {
88 SetOwnerId(std::forward<OwnerIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetGroupId() const { return m_groupId; }
98 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
99 template <typename GroupIdT = Aws::String>
100 void SetGroupId(GroupIdT&& value) {
101 m_groupIdHasBeenSet = true;
102 m_groupId = std::forward<GroupIdT>(value);
103 }
104 template <typename GroupIdT = Aws::String>
105 SecurityGroupForVpc& WithGroupId(GroupIdT&& value) {
106 SetGroupId(std::forward<GroupIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template <typename TagsT = Aws::Vector<Tag>>
118 void SetTags(TagsT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags = std::forward<TagsT>(value);
121 }
122 template <typename TagsT = Aws::Vector<Tag>>
124 SetTags(std::forward<TagsT>(value));
125 return *this;
126 }
127 template <typename TagsT = Tag>
128 SecurityGroupForVpc& AddTags(TagsT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags.emplace_back(std::forward<TagsT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetPrimaryVpcId() const { return m_primaryVpcId; }
140 inline bool PrimaryVpcIdHasBeenSet() const { return m_primaryVpcIdHasBeenSet; }
141 template <typename PrimaryVpcIdT = Aws::String>
142 void SetPrimaryVpcId(PrimaryVpcIdT&& value) {
143 m_primaryVpcIdHasBeenSet = true;
144 m_primaryVpcId = std::forward<PrimaryVpcIdT>(value);
145 }
146 template <typename PrimaryVpcIdT = Aws::String>
147 SecurityGroupForVpc& WithPrimaryVpcId(PrimaryVpcIdT&& value) {
148 SetPrimaryVpcId(std::forward<PrimaryVpcIdT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_description;
154
155 Aws::String m_groupName;
156
157 Aws::String m_ownerId;
158
159 Aws::String m_groupId;
160
161 Aws::Vector<Tag> m_tags;
162
163 Aws::String m_primaryVpcId;
164 bool m_descriptionHasBeenSet = false;
165 bool m_groupNameHasBeenSet = false;
166 bool m_ownerIdHasBeenSet = false;
167 bool m_groupIdHasBeenSet = false;
168 bool m_tagsHasBeenSet = false;
169 bool m_primaryVpcIdHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace EC2
174} // namespace Aws
SecurityGroupForVpc & WithGroupId(GroupIdT &&value)
AWS_EC2_API SecurityGroupForVpc()=default
SecurityGroupForVpc & WithPrimaryVpcId(PrimaryVpcIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetDescription() const
const Aws::String & GetOwnerId() const
void SetPrimaryVpcId(PrimaryVpcIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SecurityGroupForVpc & WithTags(TagsT &&value)
SecurityGroupForVpc & WithOwnerId(OwnerIdT &&value)
SecurityGroupForVpc & AddTags(TagsT &&value)
const Aws::String & GetGroupName() const
const Aws::String & GetPrimaryVpcId() const
AWS_EC2_API SecurityGroupForVpc(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API SecurityGroupForVpc & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupForVpc & WithGroupName(GroupNameT &&value)
const Aws::String & GetGroupId() const
SecurityGroupForVpc & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&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