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/InstanceEventWindowAssociationTarget.h>
12#include <aws/ec2/model/InstanceEventWindowState.h>
13#include <aws/ec2/model/InstanceEventWindowTimeRange.h>
14#include <aws/ec2/model/Tag.h>
47 template <
typename InstanceEventWindowIdT = Aws::String>
49 m_instanceEventWindowIdHasBeenSet =
true;
50 m_instanceEventWindowId = std::forward<InstanceEventWindowIdT>(value);
52 template <
typename InstanceEventWindowIdT = Aws::String>
65 template <
typename TimeRangesT = Aws::Vector<InstanceEventWindowTimeRange>>
67 m_timeRangesHasBeenSet =
true;
68 m_timeRanges = std::forward<TimeRangesT>(value);
70 template <
typename TimeRangesT = Aws::Vector<InstanceEventWindowTimeRange>>
75 template <
typename TimeRangesT = InstanceEventWindowTimeRange>
77 m_timeRangesHasBeenSet =
true;
78 m_timeRanges.emplace_back(std::forward<TimeRangesT>(value));
89 template <
typename NameT = Aws::String>
91 m_nameHasBeenSet =
true;
92 m_name = std::forward<NameT>(value);
94 template <
typename NameT = Aws::String>
96 SetName(std::forward<NameT>(value));
107 template <
typename CronExpressionT = Aws::String>
109 m_cronExpressionHasBeenSet =
true;
110 m_cronExpression = std::forward<CronExpressionT>(value);
112 template <
typename CronExpressionT = Aws::String>
125 template <
typename AssociationTargetT = InstanceEventWindowAssociationTarget>
127 m_associationTargetHasBeenSet =
true;
128 m_associationTarget = std::forward<AssociationTargetT>(value);
130 template <
typename AssociationTargetT = InstanceEventWindowAssociationTarget>
144 m_stateHasBeenSet =
true;
159 template <
typename TagsT = Aws::Vector<Tag>>
161 m_tagsHasBeenSet =
true;
162 m_tags = std::forward<TagsT>(value);
164 template <
typename TagsT = Aws::Vector<Tag>>
166 SetTags(std::forward<TagsT>(value));
169 template <
typename TagsT = Tag>
171 m_tagsHasBeenSet =
true;
172 m_tags.emplace_back(std::forward<TagsT>(value));
190 bool m_instanceEventWindowIdHasBeenSet =
false;
191 bool m_timeRangesHasBeenSet =
false;
192 bool m_nameHasBeenSet =
false;
193 bool m_cronExpressionHasBeenSet =
false;
194 bool m_associationTargetHasBeenSet =
false;
195 bool m_stateHasBeenSet =
false;
196 bool m_tagsHasBeenSet =
false;
InstanceEventWindow & WithCronExpression(CronExpressionT &&value)
InstanceEventWindow & AddTags(TagsT &&value)
bool TimeRangesHasBeenSet() const
void SetTimeRanges(TimeRangesT &&value)
const Aws::Vector< InstanceEventWindowTimeRange > & GetTimeRanges() const
InstanceEventWindow & WithTimeRanges(TimeRangesT &&value)
const Aws::String & GetCronExpression() const
InstanceEventWindow & WithInstanceEventWindowId(InstanceEventWindowIdT &&value)
bool CronExpressionHasBeenSet() const
AWS_EC2_API InstanceEventWindow()=default
const Aws::String & GetInstanceEventWindowId() const
InstanceEventWindow & WithTags(TagsT &&value)
InstanceEventWindow & WithAssociationTarget(AssociationTargetT &&value)
InstanceEventWindow & AddTimeRanges(TimeRangesT &&value)
const Aws::String & GetName() const
void SetState(InstanceEventWindowState value)
AWS_EC2_API InstanceEventWindow(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceEventWindowId(InstanceEventWindowIdT &&value)
void SetTags(TagsT &&value)
void SetCronExpression(CronExpressionT &&value)
bool InstanceEventWindowIdHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool StateHasBeenSet() const
InstanceEventWindow & WithName(NameT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetName(NameT &&value)
InstanceEventWindowState GetState() const
void SetAssociationTarget(AssociationTargetT &&value)
const InstanceEventWindowAssociationTarget & GetAssociationTarget() const
bool NameHasBeenSet() const
InstanceEventWindow & WithState(InstanceEventWindowState value)
const Aws::Vector< Tag > & GetTags() const
bool TagsHasBeenSet() const
bool AssociationTargetHasBeenSet() const
AWS_EC2_API InstanceEventWindow & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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