AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceEventWindow.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/InstanceEventWindowAssociationTarget.h>
12#include <aws/ec2/model/InstanceEventWindowState.h>
13#include <aws/ec2/model/InstanceEventWindowTimeRange.h>
14#include <aws/ec2/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_EC2_API InstanceEventWindow();
40 AWS_EC2_API InstanceEventWindow(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetInstanceEventWindowId() const{ return m_instanceEventWindowId; }
52 inline bool InstanceEventWindowIdHasBeenSet() const { return m_instanceEventWindowIdHasBeenSet; }
53 inline void SetInstanceEventWindowId(const Aws::String& value) { m_instanceEventWindowIdHasBeenSet = true; m_instanceEventWindowId = value; }
54 inline void SetInstanceEventWindowId(Aws::String&& value) { m_instanceEventWindowIdHasBeenSet = true; m_instanceEventWindowId = std::move(value); }
55 inline void SetInstanceEventWindowId(const char* value) { m_instanceEventWindowIdHasBeenSet = true; m_instanceEventWindowId.assign(value); }
57 inline InstanceEventWindow& WithInstanceEventWindowId(Aws::String&& value) { SetInstanceEventWindowId(std::move(value)); return *this;}
58 inline InstanceEventWindow& WithInstanceEventWindowId(const char* value) { SetInstanceEventWindowId(value); return *this;}
60
62
65 inline const Aws::Vector<InstanceEventWindowTimeRange>& GetTimeRanges() const{ return m_timeRanges; }
66 inline bool TimeRangesHasBeenSet() const { return m_timeRangesHasBeenSet; }
67 inline void SetTimeRanges(const Aws::Vector<InstanceEventWindowTimeRange>& value) { m_timeRangesHasBeenSet = true; m_timeRanges = value; }
68 inline void SetTimeRanges(Aws::Vector<InstanceEventWindowTimeRange>&& value) { m_timeRangesHasBeenSet = true; m_timeRanges = std::move(value); }
71 inline InstanceEventWindow& AddTimeRanges(const InstanceEventWindowTimeRange& value) { m_timeRangesHasBeenSet = true; m_timeRanges.push_back(value); return *this; }
72 inline InstanceEventWindow& AddTimeRanges(InstanceEventWindowTimeRange&& value) { m_timeRangesHasBeenSet = true; m_timeRanges.push_back(std::move(value)); return *this; }
74
76
79 inline const Aws::String& GetName() const{ return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
82 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
83 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
84 inline InstanceEventWindow& WithName(const Aws::String& value) { SetName(value); return *this;}
85 inline InstanceEventWindow& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 inline InstanceEventWindow& WithName(const char* value) { SetName(value); return *this;}
88
90
93 inline const Aws::String& GetCronExpression() const{ return m_cronExpression; }
94 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
95 inline void SetCronExpression(const Aws::String& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = value; }
96 inline void SetCronExpression(Aws::String&& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = std::move(value); }
97 inline void SetCronExpression(const char* value) { m_cronExpressionHasBeenSet = true; m_cronExpression.assign(value); }
98 inline InstanceEventWindow& WithCronExpression(const Aws::String& value) { SetCronExpression(value); return *this;}
99 inline InstanceEventWindow& WithCronExpression(Aws::String&& value) { SetCronExpression(std::move(value)); return *this;}
100 inline InstanceEventWindow& WithCronExpression(const char* value) { SetCronExpression(value); return *this;}
102
104
107 inline const InstanceEventWindowAssociationTarget& GetAssociationTarget() const{ return m_associationTarget; }
108 inline bool AssociationTargetHasBeenSet() const { return m_associationTargetHasBeenSet; }
109 inline void SetAssociationTarget(const InstanceEventWindowAssociationTarget& value) { m_associationTargetHasBeenSet = true; m_associationTarget = value; }
110 inline void SetAssociationTarget(InstanceEventWindowAssociationTarget&& value) { m_associationTargetHasBeenSet = true; m_associationTarget = std::move(value); }
114
116
119 inline const InstanceEventWindowState& GetState() const{ return m_state; }
120 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
121 inline void SetState(const InstanceEventWindowState& value) { m_stateHasBeenSet = true; m_state = value; }
122 inline void SetState(InstanceEventWindowState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
123 inline InstanceEventWindow& WithState(const InstanceEventWindowState& value) { SetState(value); return *this;}
124 inline InstanceEventWindow& WithState(InstanceEventWindowState&& value) { SetState(std::move(value)); return *this;}
126
128
131 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
134 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
135 inline InstanceEventWindow& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
136 inline InstanceEventWindow& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
137 inline InstanceEventWindow& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
138 inline InstanceEventWindow& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
140 private:
141
142 Aws::String m_instanceEventWindowId;
143 bool m_instanceEventWindowIdHasBeenSet = false;
144
146 bool m_timeRangesHasBeenSet = false;
147
148 Aws::String m_name;
149 bool m_nameHasBeenSet = false;
150
151 Aws::String m_cronExpression;
152 bool m_cronExpressionHasBeenSet = false;
153
154 InstanceEventWindowAssociationTarget m_associationTarget;
155 bool m_associationTargetHasBeenSet = false;
156
158 bool m_stateHasBeenSet = false;
159
160 Aws::Vector<Tag> m_tags;
161 bool m_tagsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace EC2
166} // namespace Aws
InstanceEventWindow & AddTimeRanges(InstanceEventWindowTimeRange &&value)
InstanceEventWindow & WithAssociationTarget(InstanceEventWindowAssociationTarget &&value)
void SetInstanceEventWindowId(const Aws::String &value)
void SetCronExpression(const Aws::String &value)
const Aws::Vector< InstanceEventWindowTimeRange > & GetTimeRanges() const
InstanceEventWindow & WithName(const char *value)
void SetState(const InstanceEventWindowState &value)
InstanceEventWindow & WithCronExpression(const char *value)
InstanceEventWindow & WithAssociationTarget(const InstanceEventWindowAssociationTarget &value)
const Aws::String & GetCronExpression() const
InstanceEventWindow & WithInstanceEventWindowId(const char *value)
const InstanceEventWindowState & GetState() const
void SetTimeRanges(Aws::Vector< InstanceEventWindowTimeRange > &&value)
const Aws::String & GetInstanceEventWindowId() const
void SetInstanceEventWindowId(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
void SetInstanceEventWindowId(Aws::String &&value)
InstanceEventWindow & WithTimeRanges(Aws::Vector< InstanceEventWindowTimeRange > &&value)
void SetName(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::String & GetName() const
InstanceEventWindow & WithTags(const Aws::Vector< Tag > &value)
AWS_EC2_API InstanceEventWindow(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceEventWindow & WithState(const InstanceEventWindowState &value)
InstanceEventWindow & WithTimeRanges(const Aws::Vector< InstanceEventWindowTimeRange > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceEventWindow & WithTags(Aws::Vector< Tag > &&value)
InstanceEventWindow & AddTimeRanges(const InstanceEventWindowTimeRange &value)
InstanceEventWindow & AddTags(const Tag &value)
InstanceEventWindow & WithInstanceEventWindowId(const Aws::String &value)
void SetTimeRanges(const Aws::Vector< InstanceEventWindowTimeRange > &value)
InstanceEventWindow & WithInstanceEventWindowId(Aws::String &&value)
void SetCronExpression(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAssociationTarget(const InstanceEventWindowAssociationTarget &value)
InstanceEventWindow & WithCronExpression(Aws::String &&value)
InstanceEventWindow & WithCronExpression(const Aws::String &value)
InstanceEventWindow & WithName(Aws::String &&value)
InstanceEventWindow & AddTags(Tag &&value)
InstanceEventWindow & WithName(const Aws::String &value)
void SetAssociationTarget(InstanceEventWindowAssociationTarget &&value)
const InstanceEventWindowAssociationTarget & GetAssociationTarget() const
InstanceEventWindow & WithState(InstanceEventWindowState &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_EC2_API InstanceEventWindow & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(InstanceEventWindowState &&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