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>
53 template<
typename InstanceEventWindowIdT = Aws::String>
54 void SetInstanceEventWindowId(InstanceEventWindowIdT&& value) { m_instanceEventWindowIdHasBeenSet =
true; m_instanceEventWindowId = std::forward<InstanceEventWindowIdT>(value); }
55 template<
typename InstanceEventWindowIdT = Aws::String>
65 template<
typename TimeRangesT = Aws::Vector<InstanceEventWindowTimeRange>>
66 void SetTimeRanges(TimeRangesT&& value) { m_timeRangesHasBeenSet =
true; m_timeRanges = std::forward<TimeRangesT>(value); }
67 template<
typename TimeRangesT = Aws::Vector<InstanceEventWindowTimeRange>>
69 template<
typename TimeRangesT = InstanceEventWindowTimeRange>
79 template<
typename NameT = Aws::String>
80 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
81 template<
typename NameT = Aws::String>
91 template<
typename CronExpressionT = Aws::String>
92 void SetCronExpression(CronExpressionT&& value) { m_cronExpressionHasBeenSet =
true; m_cronExpression = std::forward<CronExpressionT>(value); }
93 template<
typename CronExpressionT = Aws::String>
103 template<
typename AssociationTargetT = InstanceEventWindowAssociationTarget>
104 void SetAssociationTarget(AssociationTargetT&& value) { m_associationTargetHasBeenSet =
true; m_associationTarget = std::forward<AssociationTargetT>(value); }
105 template<
typename AssociationTargetT = InstanceEventWindowAssociationTarget>
125 template<
typename TagsT = Aws::Vector<Tag>>
126 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
127 template<
typename TagsT = Aws::Vector<Tag>>
129 template<
typename TagsT = Tag>
135 bool m_instanceEventWindowIdHasBeenSet =
false;
138 bool m_timeRangesHasBeenSet =
false;
141 bool m_nameHasBeenSet =
false;
144 bool m_cronExpressionHasBeenSet =
false;
147 bool m_associationTargetHasBeenSet =
false;
150 bool m_stateHasBeenSet =
false;
153 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