7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/ReportInstanceReasonCodes.h>
13#include <aws/ec2/model/ReportStatusType.h>
49 m_dryRunHasBeenSet =
true;
64 template <
typename InstancesT = Aws::Vector<Aws::String>>
66 m_instancesHasBeenSet =
true;
67 m_instances = std::forward<InstancesT>(value);
69 template <
typename InstancesT = Aws::Vector<Aws::String>>
74 template <
typename InstancesT = Aws::String>
76 m_instancesHasBeenSet =
true;
77 m_instances.emplace_back(std::forward<InstancesT>(value));
89 m_statusHasBeenSet =
true;
104 template <
typename StartTimeT = Aws::Utils::DateTime>
106 m_startTimeHasBeenSet =
true;
107 m_startTime = std::forward<StartTimeT>(value);
109 template <
typename StartTimeT = Aws::Utils::DateTime>
122 template <
typename EndTimeT = Aws::Utils::DateTime>
124 m_endTimeHasBeenSet =
true;
125 m_endTime = std::forward<EndTimeT>(value);
127 template <
typename EndTimeT = Aws::Utils::DateTime>
154 template <
typename ReasonCodesT = Aws::Vector<ReportInstanceReasonCodes>>
156 m_reasonCodesHasBeenSet =
true;
157 m_reasonCodes = std::forward<ReasonCodesT>(value);
159 template <
typename ReasonCodesT = Aws::Vector<ReportInstanceReasonCodes>>
165 m_reasonCodesHasBeenSet =
true;
166 m_reasonCodes.push_back(value);
171 bool m_dryRun{
false};
182 bool m_dryRunHasBeenSet =
false;
183 bool m_instancesHasBeenSet =
false;
184 bool m_statusHasBeenSet =
false;
185 bool m_startTimeHasBeenSet =
false;
186 bool m_endTimeHasBeenSet =
false;
187 bool m_reasonCodesHasBeenSet =
false;
ReportInstanceStatusRequest & AddInstances(InstancesT &&value)
ReportInstanceStatusRequest & WithDryRun(bool value)
bool StartTimeHasBeenSet() const
AWS_EC2_API ReportInstanceStatusRequest()=default
bool EndTimeHasBeenSet() const
ReportInstanceStatusRequest & WithInstances(InstancesT &&value)
void SetEndTime(EndTimeT &&value)
void SetInstances(InstancesT &&value)
ReportInstanceStatusRequest & WithEndTime(EndTimeT &&value)
void SetStatus(ReportStatusType value)
void SetDryRun(bool value)
ReportInstanceStatusRequest & AddReasonCodes(ReportInstanceReasonCodes value)
void SetStartTime(StartTimeT &&value)
ReportStatusType GetStatus() const
void SetReasonCodes(ReasonCodesT &&value)
ReportInstanceStatusRequest & WithReasonCodes(ReasonCodesT &&value)
bool InstancesHasBeenSet() const
const Aws::Vector< ReportInstanceReasonCodes > & GetReasonCodes() const
const Aws::Vector< Aws::String > & GetInstances() const
virtual const char * GetServiceRequestName() const override
bool ReasonCodesHasBeenSet() const
const Aws::Utils::DateTime & GetEndTime() const
const Aws::Utils::DateTime & GetStartTime() const
bool DryRunHasBeenSet() const
bool StatusHasBeenSet() const
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ReportInstanceStatusRequest & WithStartTime(StartTimeT &&value)
ReportInstanceStatusRequest & WithStatus(ReportStatusType value)
ReportInstanceReasonCodes
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector