AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ClassicLinkInstance.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/GroupIdentifier.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EC2_API ClassicLinkInstance() = default;
39 AWS_EC2_API ClassicLinkInstance(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::Vector<GroupIdentifier>& GetGroups() const { return m_groups; }
51 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
52 template<typename GroupsT = Aws::Vector<GroupIdentifier>>
53 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups = std::forward<GroupsT>(value); }
54 template<typename GroupsT = Aws::Vector<GroupIdentifier>>
55 ClassicLinkInstance& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
56 template<typename GroupsT = GroupIdentifier>
57 ClassicLinkInstance& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
59
61
64 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
65 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
66 template<typename InstanceIdT = Aws::String>
67 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
68 template<typename InstanceIdT = Aws::String>
69 ClassicLinkInstance& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
71
73
76 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 template<typename TagsT = Aws::Vector<Tag>>
79 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
80 template<typename TagsT = Aws::Vector<Tag>>
81 ClassicLinkInstance& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
82 template<typename TagsT = Tag>
83 ClassicLinkInstance& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
85
87
90 inline const Aws::String& GetVpcId() const { return m_vpcId; }
91 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
92 template<typename VpcIdT = Aws::String>
93 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
94 template<typename VpcIdT = Aws::String>
95 ClassicLinkInstance& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
97 private:
98
100 bool m_groupsHasBeenSet = false;
101
102 Aws::String m_instanceId;
103 bool m_instanceIdHasBeenSet = false;
104
105 Aws::Vector<Tag> m_tags;
106 bool m_tagsHasBeenSet = false;
107
108 Aws::String m_vpcId;
109 bool m_vpcIdHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EC2
114} // namespace Aws
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