AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InstanceEventWindowAssociationTarget.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 InstanceEventWindowAssociationTarget() = default;
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::Vector<Aws::String>& GetInstanceIds() const { return m_instanceIds; }
44 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
45 template <typename InstanceIdsT = Aws::Vector<Aws::String>>
46 void SetInstanceIds(InstanceIdsT&& value) {
47 m_instanceIdsHasBeenSet = true;
48 m_instanceIds = std::forward<InstanceIdsT>(value);
49 }
50 template <typename InstanceIdsT = Aws::Vector<Aws::String>>
52 SetInstanceIds(std::forward<InstanceIdsT>(value));
53 return *this;
54 }
55 template <typename InstanceIdsT = Aws::String>
57 m_instanceIdsHasBeenSet = true;
58 m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value));
59 return *this;
60 }
62
64
71 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
72 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
73 template <typename TagsT = Aws::Vector<Tag>>
74 void SetTags(TagsT&& value) {
75 m_tagsHasBeenSet = true;
76 m_tags = std::forward<TagsT>(value);
77 }
78 template <typename TagsT = Aws::Vector<Tag>>
80 SetTags(std::forward<TagsT>(value));
81 return *this;
82 }
83 template <typename TagsT = Tag>
85 m_tagsHasBeenSet = true;
86 m_tags.emplace_back(std::forward<TagsT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Aws::String>& GetDedicatedHostIds() const { return m_dedicatedHostIds; }
96 inline bool DedicatedHostIdsHasBeenSet() const { return m_dedicatedHostIdsHasBeenSet; }
97 template <typename DedicatedHostIdsT = Aws::Vector<Aws::String>>
98 void SetDedicatedHostIds(DedicatedHostIdsT&& value) {
99 m_dedicatedHostIdsHasBeenSet = true;
100 m_dedicatedHostIds = std::forward<DedicatedHostIdsT>(value);
101 }
102 template <typename DedicatedHostIdsT = Aws::Vector<Aws::String>>
104 SetDedicatedHostIds(std::forward<DedicatedHostIdsT>(value));
105 return *this;
106 }
107 template <typename DedicatedHostIdsT = Aws::String>
109 m_dedicatedHostIdsHasBeenSet = true;
110 m_dedicatedHostIds.emplace_back(std::forward<DedicatedHostIdsT>(value));
111 return *this;
112 }
114 private:
115 Aws::Vector<Aws::String> m_instanceIds;
116
117 Aws::Vector<Tag> m_tags;
118
119 Aws::Vector<Aws::String> m_dedicatedHostIds;
120 bool m_instanceIdsHasBeenSet = false;
121 bool m_tagsHasBeenSet = false;
122 bool m_dedicatedHostIdsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace EC2
127} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceEventWindowAssociationTarget & AddTags(TagsT &&value)
AWS_EC2_API InstanceEventWindowAssociationTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceEventWindowAssociationTarget & AddInstanceIds(InstanceIdsT &&value)
InstanceEventWindowAssociationTarget & WithDedicatedHostIds(DedicatedHostIdsT &&value)
AWS_EC2_API InstanceEventWindowAssociationTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceEventWindowAssociationTarget & WithTags(TagsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceEventWindowAssociationTarget & AddDedicatedHostIds(DedicatedHostIdsT &&value)
InstanceEventWindowAssociationTarget & WithInstanceIds(InstanceIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream