AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SecurityGroupForVpc.h
1
6#pragma once
7#include <aws/ec2/EC2_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/ec2/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 EC2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EC2_API SecurityGroupForVpc() = default;
38 AWS_EC2_API SecurityGroupForVpc(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetDescription() const { return m_description; }
50 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51 template<typename DescriptionT = Aws::String>
52 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
53 template<typename DescriptionT = Aws::String>
54 SecurityGroupForVpc& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
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) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
65 template<typename GroupNameT = Aws::String>
66 SecurityGroupForVpc& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
74 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
75 template<typename OwnerIdT = Aws::String>
76 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
77 template<typename OwnerIdT = Aws::String>
78 SecurityGroupForVpc& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetGroupId() const { return m_groupId; }
86 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
87 template<typename GroupIdT = Aws::String>
88 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
89 template<typename GroupIdT = Aws::String>
90 SecurityGroupForVpc& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
92
94
97 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template<typename TagsT = Aws::Vector<Tag>>
100 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
101 template<typename TagsT = Aws::Vector<Tag>>
102 SecurityGroupForVpc& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
103 template<typename TagsT = Tag>
104 SecurityGroupForVpc& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
106
108
111 inline const Aws::String& GetPrimaryVpcId() const { return m_primaryVpcId; }
112 inline bool PrimaryVpcIdHasBeenSet() const { return m_primaryVpcIdHasBeenSet; }
113 template<typename PrimaryVpcIdT = Aws::String>
114 void SetPrimaryVpcId(PrimaryVpcIdT&& value) { m_primaryVpcIdHasBeenSet = true; m_primaryVpcId = std::forward<PrimaryVpcIdT>(value); }
115 template<typename PrimaryVpcIdT = Aws::String>
116 SecurityGroupForVpc& WithPrimaryVpcId(PrimaryVpcIdT&& value) { SetPrimaryVpcId(std::forward<PrimaryVpcIdT>(value)); return *this;}
118 private:
119
120 Aws::String m_description;
121 bool m_descriptionHasBeenSet = false;
122
123 Aws::String m_groupName;
124 bool m_groupNameHasBeenSet = false;
125
126 Aws::String m_ownerId;
127 bool m_ownerIdHasBeenSet = false;
128
129 Aws::String m_groupId;
130 bool m_groupIdHasBeenSet = false;
131
132 Aws::Vector<Tag> m_tags;
133 bool m_tagsHasBeenSet = false;
134
135 Aws::String m_primaryVpcId;
136 bool m_primaryVpcIdHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace EC2
141} // 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