AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
52 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
53 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
54 inline SecurityGroupForVpc& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
55 inline SecurityGroupForVpc& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
56 inline SecurityGroupForVpc& WithDescription(const char* value) { SetDescription(value); return *this;}
58
60
63 inline const Aws::String& GetGroupName() const{ return m_groupName; }
64 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
65 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
66 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
67 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
68 inline SecurityGroupForVpc& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
69 inline SecurityGroupForVpc& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
70 inline SecurityGroupForVpc& WithGroupName(const char* value) { SetGroupName(value); return *this;}
72
74
77 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
78 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
79 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
80 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
81 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
82 inline SecurityGroupForVpc& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
83 inline SecurityGroupForVpc& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
84 inline SecurityGroupForVpc& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
86
88
91 inline const Aws::String& GetGroupId() const{ return m_groupId; }
92 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
93 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
94 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
95 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
96 inline SecurityGroupForVpc& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
97 inline SecurityGroupForVpc& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
98 inline SecurityGroupForVpc& WithGroupId(const char* value) { SetGroupId(value); return *this;}
100
102
105 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
108 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
109 inline SecurityGroupForVpc& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
110 inline SecurityGroupForVpc& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
111 inline SecurityGroupForVpc& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
112 inline SecurityGroupForVpc& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
114
116
119 inline const Aws::String& GetPrimaryVpcId() const{ return m_primaryVpcId; }
120 inline bool PrimaryVpcIdHasBeenSet() const { return m_primaryVpcIdHasBeenSet; }
121 inline void SetPrimaryVpcId(const Aws::String& value) { m_primaryVpcIdHasBeenSet = true; m_primaryVpcId = value; }
122 inline void SetPrimaryVpcId(Aws::String&& value) { m_primaryVpcIdHasBeenSet = true; m_primaryVpcId = std::move(value); }
123 inline void SetPrimaryVpcId(const char* value) { m_primaryVpcIdHasBeenSet = true; m_primaryVpcId.assign(value); }
124 inline SecurityGroupForVpc& WithPrimaryVpcId(const Aws::String& value) { SetPrimaryVpcId(value); return *this;}
125 inline SecurityGroupForVpc& WithPrimaryVpcId(Aws::String&& value) { SetPrimaryVpcId(std::move(value)); return *this;}
126 inline SecurityGroupForVpc& WithPrimaryVpcId(const char* value) { SetPrimaryVpcId(value); return *this;}
128 private:
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
133 Aws::String m_groupName;
134 bool m_groupNameHasBeenSet = false;
135
136 Aws::String m_ownerId;
137 bool m_ownerIdHasBeenSet = false;
138
139 Aws::String m_groupId;
140 bool m_groupIdHasBeenSet = false;
141
142 Aws::Vector<Tag> m_tags;
143 bool m_tagsHasBeenSet = false;
144
145 Aws::String m_primaryVpcId;
146 bool m_primaryVpcIdHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace EC2
151} // namespace Aws
void SetPrimaryVpcId(Aws::String &&value)
SecurityGroupForVpc & WithPrimaryVpcId(Aws::String &&value)
void SetGroupId(const Aws::String &value)
SecurityGroupForVpc & WithGroupId(const Aws::String &value)
SecurityGroupForVpc & WithGroupId(const char *value)
SecurityGroupForVpc & WithGroupId(Aws::String &&value)
SecurityGroupForVpc & WithOwnerId(const Aws::String &value)
SecurityGroupForVpc & WithGroupName(const Aws::String &value)
SecurityGroupForVpc & WithOwnerId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Tag > & GetTags() const
void SetTags(const Aws::Vector< Tag > &value)
const Aws::String & GetDescription() const
const Aws::String & GetOwnerId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SecurityGroupForVpc & WithDescription(const Aws::String &value)
SecurityGroupForVpc & WithPrimaryVpcId(const char *value)
SecurityGroupForVpc & AddTags(const Tag &value)
void SetGroupName(const Aws::String &value)
SecurityGroupForVpc & WithOwnerId(const char *value)
SecurityGroupForVpc & WithDescription(const char *value)
const Aws::String & GetGroupName() const
const Aws::String & GetPrimaryVpcId() const
SecurityGroupForVpc & AddTags(Tag &&value)
SecurityGroupForVpc & WithDescription(Aws::String &&value)
SecurityGroupForVpc & WithTags(Aws::Vector< Tag > &&value)
void SetPrimaryVpcId(const Aws::String &value)
AWS_EC2_API SecurityGroupForVpc(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupForVpc & WithGroupName(Aws::String &&value)
SecurityGroupForVpc & WithGroupName(const char *value)
void SetDescription(const Aws::String &value)
AWS_EC2_API SecurityGroupForVpc & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupForVpc & WithTags(const Aws::Vector< Tag > &value)
const Aws::String & GetGroupId() const
void SetOwnerId(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
SecurityGroupForVpc & WithPrimaryVpcId(const Aws::String &value)
void SetDescription(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