AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceEventWindowAssociationTarget.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/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:
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::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
50 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
51 inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
52 inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
55 inline InstanceEventWindowAssociationTarget& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
56 inline InstanceEventWindowAssociationTarget& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
57 inline InstanceEventWindowAssociationTarget& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
59
61
65 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
66 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
67 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
68 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
69 inline InstanceEventWindowAssociationTarget& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
70 inline InstanceEventWindowAssociationTarget& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
71 inline InstanceEventWindowAssociationTarget& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
72 inline InstanceEventWindowAssociationTarget& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
74
76
79 inline const Aws::Vector<Aws::String>& GetDedicatedHostIds() const{ return m_dedicatedHostIds; }
80 inline bool DedicatedHostIdsHasBeenSet() const { return m_dedicatedHostIdsHasBeenSet; }
81 inline void SetDedicatedHostIds(const Aws::Vector<Aws::String>& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds = value; }
82 inline void SetDedicatedHostIds(Aws::Vector<Aws::String>&& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds = std::move(value); }
85 inline InstanceEventWindowAssociationTarget& AddDedicatedHostIds(const Aws::String& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds.push_back(value); return *this; }
86 inline InstanceEventWindowAssociationTarget& AddDedicatedHostIds(Aws::String&& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds.push_back(std::move(value)); return *this; }
87 inline InstanceEventWindowAssociationTarget& AddDedicatedHostIds(const char* value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds.push_back(value); return *this; }
89 private:
90
91 Aws::Vector<Aws::String> m_instanceIds;
92 bool m_instanceIdsHasBeenSet = false;
93
94 Aws::Vector<Tag> m_tags;
95 bool m_tagsHasBeenSet = false;
96
97 Aws::Vector<Aws::String> m_dedicatedHostIds;
98 bool m_dedicatedHostIdsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace EC2
103} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceEventWindowAssociationTarget & AddInstanceIds(Aws::String &&value)
AWS_EC2_API InstanceEventWindowAssociationTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceEventWindowAssociationTarget & WithInstanceIds(Aws::Vector< Aws::String > &&value)
InstanceEventWindowAssociationTarget & AddDedicatedHostIds(const char *value)
InstanceEventWindowAssociationTarget & WithInstanceIds(const Aws::Vector< Aws::String > &value)
InstanceEventWindowAssociationTarget & AddDedicatedHostIds(Aws::String &&value)
InstanceEventWindowAssociationTarget & WithTags(Aws::Vector< Tag > &&value)
AWS_EC2_API InstanceEventWindowAssociationTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceEventWindowAssociationTarget & WithDedicatedHostIds(const Aws::Vector< Aws::String > &value)
InstanceEventWindowAssociationTarget & WithTags(const Aws::Vector< Tag > &value)
InstanceEventWindowAssociationTarget & AddTags(Tag &&value)
InstanceEventWindowAssociationTarget & AddInstanceIds(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceEventWindowAssociationTarget & AddDedicatedHostIds(const Aws::String &value)
InstanceEventWindowAssociationTarget & WithDedicatedHostIds(Aws::Vector< Aws::String > &&value)
InstanceEventWindowAssociationTarget & AddTags(const Tag &value)
InstanceEventWindowAssociationTarget & AddInstanceIds(const 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