AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceEventWindowAssociationRequest.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
36 {
37 public:
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
52 inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
53 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
54 inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
55 inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
58 inline InstanceEventWindowAssociationRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
59 inline InstanceEventWindowAssociationRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
60 inline InstanceEventWindowAssociationRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
62
64
68 inline const Aws::Vector<Tag>& GetInstanceTags() const{ return m_instanceTags; }
69 inline bool InstanceTagsHasBeenSet() const { return m_instanceTagsHasBeenSet; }
70 inline void SetInstanceTags(const Aws::Vector<Tag>& value) { m_instanceTagsHasBeenSet = true; m_instanceTags = value; }
71 inline void SetInstanceTags(Aws::Vector<Tag>&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags = std::move(value); }
74 inline InstanceEventWindowAssociationRequest& AddInstanceTags(const Tag& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.push_back(value); return *this; }
75 inline InstanceEventWindowAssociationRequest& AddInstanceTags(Tag&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.push_back(std::move(value)); return *this; }
77
79
82 inline const Aws::Vector<Aws::String>& GetDedicatedHostIds() const{ return m_dedicatedHostIds; }
83 inline bool DedicatedHostIdsHasBeenSet() const { return m_dedicatedHostIdsHasBeenSet; }
84 inline void SetDedicatedHostIds(const Aws::Vector<Aws::String>& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds = value; }
85 inline void SetDedicatedHostIds(Aws::Vector<Aws::String>&& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds = std::move(value); }
88 inline InstanceEventWindowAssociationRequest& AddDedicatedHostIds(const Aws::String& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds.push_back(value); return *this; }
89 inline InstanceEventWindowAssociationRequest& AddDedicatedHostIds(Aws::String&& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds.push_back(std::move(value)); return *this; }
90 inline InstanceEventWindowAssociationRequest& AddDedicatedHostIds(const char* value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds.push_back(value); return *this; }
92 private:
93
94 Aws::Vector<Aws::String> m_instanceIds;
95 bool m_instanceIdsHasBeenSet = false;
96
97 Aws::Vector<Tag> m_instanceTags;
98 bool m_instanceTagsHasBeenSet = false;
99
100 Aws::Vector<Aws::String> m_dedicatedHostIds;
101 bool m_dedicatedHostIdsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace EC2
106} // namespace Aws
InstanceEventWindowAssociationRequest & WithInstanceTags(const Aws::Vector< Tag > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceEventWindowAssociationRequest & WithDedicatedHostIds(Aws::Vector< Aws::String > &&value)
InstanceEventWindowAssociationRequest & AddDedicatedHostIds(const Aws::String &value)
InstanceEventWindowAssociationRequest & AddInstanceIds(Aws::String &&value)
AWS_EC2_API InstanceEventWindowAssociationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceEventWindowAssociationRequest & AddInstanceIds(const char *value)
InstanceEventWindowAssociationRequest & AddInstanceTags(Tag &&value)
InstanceEventWindowAssociationRequest & AddDedicatedHostIds(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API InstanceEventWindowAssociationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceEventWindowAssociationRequest & AddInstanceIds(const Aws::String &value)
InstanceEventWindowAssociationRequest & AddInstanceTags(const Tag &value)
InstanceEventWindowAssociationRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
InstanceEventWindowAssociationRequest & AddDedicatedHostIds(Aws::String &&value)
InstanceEventWindowAssociationRequest & WithDedicatedHostIds(const Aws::Vector< Aws::String > &value)
InstanceEventWindowAssociationRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
InstanceEventWindowAssociationRequest & WithInstanceTags(Aws::Vector< Tag > &&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