AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReportInstanceStatusRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/ReportStatusType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/ec2/model/ReportInstanceReasonCodes.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ReportInstanceStatus"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline bool GetDryRun() const{ return m_dryRun; }
51 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
52 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 inline ReportInstanceStatusRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetInstances() const{ return m_instances; }
61 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
62 inline void SetInstances(const Aws::Vector<Aws::String>& value) { m_instancesHasBeenSet = true; m_instances = value; }
63 inline void SetInstances(Aws::Vector<Aws::String>&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); }
65 inline ReportInstanceStatusRequest& WithInstances(Aws::Vector<Aws::String>&& value) { SetInstances(std::move(value)); return *this;}
66 inline ReportInstanceStatusRequest& AddInstances(const Aws::String& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
67 inline ReportInstanceStatusRequest& AddInstances(Aws::String&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; }
68 inline ReportInstanceStatusRequest& AddInstances(const char* value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
70
72
75 inline const ReportStatusType& GetStatus() const{ return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 inline void SetStatus(const ReportStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
78 inline void SetStatus(ReportStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
79 inline ReportInstanceStatusRequest& WithStatus(const ReportStatusType& value) { SetStatus(value); return *this;}
80 inline ReportInstanceStatusRequest& WithStatus(ReportStatusType&& value) { SetStatus(std::move(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
88 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
89 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
90 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
91 inline ReportInstanceStatusRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
92 inline ReportInstanceStatusRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
94
96
99 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
100 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
101 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
102 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
103 inline ReportInstanceStatusRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
104 inline ReportInstanceStatusRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
106
108
125 inline const Aws::Vector<ReportInstanceReasonCodes>& GetReasonCodes() const{ return m_reasonCodes; }
126 inline bool ReasonCodesHasBeenSet() const { return m_reasonCodesHasBeenSet; }
127 inline void SetReasonCodes(const Aws::Vector<ReportInstanceReasonCodes>& value) { m_reasonCodesHasBeenSet = true; m_reasonCodes = value; }
128 inline void SetReasonCodes(Aws::Vector<ReportInstanceReasonCodes>&& value) { m_reasonCodesHasBeenSet = true; m_reasonCodes = std::move(value); }
131 inline ReportInstanceStatusRequest& AddReasonCodes(const ReportInstanceReasonCodes& value) { m_reasonCodesHasBeenSet = true; m_reasonCodes.push_back(value); return *this; }
132 inline ReportInstanceStatusRequest& AddReasonCodes(ReportInstanceReasonCodes&& value) { m_reasonCodesHasBeenSet = true; m_reasonCodes.push_back(std::move(value)); return *this; }
134 private:
135
136 bool m_dryRun;
137 bool m_dryRunHasBeenSet = false;
138
139 Aws::Vector<Aws::String> m_instances;
140 bool m_instancesHasBeenSet = false;
141
142 ReportStatusType m_status;
143 bool m_statusHasBeenSet = false;
144
145 Aws::Utils::DateTime m_startTime;
146 bool m_startTimeHasBeenSet = false;
147
148 Aws::Utils::DateTime m_endTime;
149 bool m_endTimeHasBeenSet = false;
150
152 bool m_reasonCodesHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace EC2
157} // namespace Aws
ReportInstanceStatusRequest & WithDryRun(bool value)
ReportInstanceStatusRequest & AddInstances(const Aws::String &value)
void SetEndTime(const Aws::Utils::DateTime &value)
void SetInstances(Aws::Vector< Aws::String > &&value)
ReportInstanceStatusRequest & WithInstances(const Aws::Vector< Aws::String > &value)
ReportInstanceStatusRequest & WithStartTime(Aws::Utils::DateTime &&value)
void SetInstances(const Aws::Vector< Aws::String > &value)
ReportInstanceStatusRequest & WithStartTime(const Aws::Utils::DateTime &value)
ReportInstanceStatusRequest & WithReasonCodes(const Aws::Vector< ReportInstanceReasonCodes > &value)
ReportInstanceStatusRequest & WithInstances(Aws::Vector< Aws::String > &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
ReportInstanceStatusRequest & WithEndTime(const Aws::Utils::DateTime &value)
ReportInstanceStatusRequest & AddInstances(Aws::String &&value)
ReportInstanceStatusRequest & WithStatus(ReportStatusType &&value)
ReportInstanceStatusRequest & AddInstances(const char *value)
ReportInstanceStatusRequest & AddReasonCodes(ReportInstanceReasonCodes &&value)
void SetReasonCodes(const Aws::Vector< ReportInstanceReasonCodes > &value)
void SetReasonCodes(Aws::Vector< ReportInstanceReasonCodes > &&value)
const Aws::Vector< ReportInstanceReasonCodes > & GetReasonCodes() const
ReportInstanceStatusRequest & WithStatus(const ReportStatusType &value)
const Aws::Vector< Aws::String > & GetInstances() const
ReportInstanceStatusRequest & AddReasonCodes(const ReportInstanceReasonCodes &value)
virtual const char * GetServiceRequestName() const override
const Aws::Utils::DateTime & GetStartTime() const
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ReportInstanceStatusRequest & WithReasonCodes(Aws::Vector< ReportInstanceReasonCodes > &&value)
ReportInstanceStatusRequest & WithEndTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector