AWS SDK for C++  1.9.160
AWS SDK for C++
ReportInstanceStatusRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace EC2
19 {
20 namespace 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::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetDescription() const{ return m_description; }
47 
51  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
52 
56  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
57 
61  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 
66  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 
71  inline ReportInstanceStatusRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
72 
76  inline ReportInstanceStatusRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 
81  inline ReportInstanceStatusRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
82 
83 
90  inline bool GetDryRun() const{ return m_dryRun; }
91 
98  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
99 
106  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
107 
114  inline ReportInstanceStatusRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
115 
116 
120  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
121 
125  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
126 
130  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
131 
135  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
136 
140  inline ReportInstanceStatusRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
141 
145  inline ReportInstanceStatusRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
146 
147 
151  inline const Aws::Vector<Aws::String>& GetInstances() const{ return m_instances; }
152 
156  inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
157 
161  inline void SetInstances(const Aws::Vector<Aws::String>& value) { m_instancesHasBeenSet = true; m_instances = value; }
162 
166  inline void SetInstances(Aws::Vector<Aws::String>&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); }
167 
171  inline ReportInstanceStatusRequest& WithInstances(const Aws::Vector<Aws::String>& value) { SetInstances(value); return *this;}
172 
176  inline ReportInstanceStatusRequest& WithInstances(Aws::Vector<Aws::String>&& value) { SetInstances(std::move(value)); return *this;}
177 
181  inline ReportInstanceStatusRequest& AddInstances(const Aws::String& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
182 
186  inline ReportInstanceStatusRequest& AddInstances(Aws::String&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; }
187 
191  inline ReportInstanceStatusRequest& AddInstances(const char* value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
192 
193 
211  inline const Aws::Vector<ReportInstanceReasonCodes>& GetReasonCodes() const{ return m_reasonCodes; }
212 
230  inline bool ReasonCodesHasBeenSet() const { return m_reasonCodesHasBeenSet; }
231 
249  inline void SetReasonCodes(const Aws::Vector<ReportInstanceReasonCodes>& value) { m_reasonCodesHasBeenSet = true; m_reasonCodes = value; }
250 
268  inline void SetReasonCodes(Aws::Vector<ReportInstanceReasonCodes>&& value) { m_reasonCodesHasBeenSet = true; m_reasonCodes = std::move(value); }
269 
287  inline ReportInstanceStatusRequest& WithReasonCodes(const Aws::Vector<ReportInstanceReasonCodes>& value) { SetReasonCodes(value); return *this;}
288 
306  inline ReportInstanceStatusRequest& WithReasonCodes(Aws::Vector<ReportInstanceReasonCodes>&& value) { SetReasonCodes(std::move(value)); return *this;}
307 
325  inline ReportInstanceStatusRequest& AddReasonCodes(const ReportInstanceReasonCodes& value) { m_reasonCodesHasBeenSet = true; m_reasonCodes.push_back(value); return *this; }
326 
344  inline ReportInstanceStatusRequest& AddReasonCodes(ReportInstanceReasonCodes&& value) { m_reasonCodesHasBeenSet = true; m_reasonCodes.push_back(std::move(value)); return *this; }
345 
346 
350  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
351 
355  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
356 
360  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
361 
365  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
366 
370  inline ReportInstanceStatusRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
371 
375  inline ReportInstanceStatusRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
376 
377 
381  inline const ReportStatusType& GetStatus() const{ return m_status; }
382 
386  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
387 
391  inline void SetStatus(const ReportStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
392 
396  inline void SetStatus(ReportStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
397 
401  inline ReportInstanceStatusRequest& WithStatus(const ReportStatusType& value) { SetStatus(value); return *this;}
402 
406  inline ReportInstanceStatusRequest& WithStatus(ReportStatusType&& value) { SetStatus(std::move(value)); return *this;}
407 
408  private:
409 
410  Aws::String m_description;
411  bool m_descriptionHasBeenSet;
412 
413  bool m_dryRun;
414  bool m_dryRunHasBeenSet;
415 
416  Aws::Utils::DateTime m_endTime;
417  bool m_endTimeHasBeenSet;
418 
419  Aws::Vector<Aws::String> m_instances;
420  bool m_instancesHasBeenSet;
421 
423  bool m_reasonCodesHasBeenSet;
424 
425  Aws::Utils::DateTime m_startTime;
426  bool m_startTimeHasBeenSet;
427 
428  ReportStatusType m_status;
429  bool m_statusHasBeenSet;
430  };
431 
432 } // namespace Model
433 } // namespace EC2
434 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::ReportInstanceStatusRequest::WithReasonCodes
ReportInstanceStatusRequest & WithReasonCodes(Aws::Vector< ReportInstanceReasonCodes > &&value)
Definition: ReportInstanceStatusRequest.h:306
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ReportInstanceStatusRequest::SetReasonCodes
void SetReasonCodes(Aws::Vector< ReportInstanceReasonCodes > &&value)
Definition: ReportInstanceStatusRequest.h:268
Aws::EC2::Model::ReportInstanceStatusRequest::SetStatus
void SetStatus(ReportStatusType &&value)
Definition: ReportInstanceStatusRequest.h:396
Aws::EC2::Model::ReportInstanceStatusRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: ReportInstanceStatusRequest.h:135
Aws::EC2::Model::ReportInstanceStatusRequest::GetStatus
const ReportStatusType & GetStatus() const
Definition: ReportInstanceStatusRequest.h:381
Aws::EC2::Model::ReportInstanceStatusRequest::AddReasonCodes
ReportInstanceStatusRequest & AddReasonCodes(ReportInstanceReasonCodes &&value)
Definition: ReportInstanceStatusRequest.h:344
Aws::EC2::Model::ReportInstanceStatusRequest::AddInstances
ReportInstanceStatusRequest & AddInstances(const char *value)
Definition: ReportInstanceStatusRequest.h:191
Aws::EC2::Model::ReportInstanceStatusRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ReportInstanceStatusRequest.h:386
Aws::EC2::Model::ReportInstanceStatusRequest::WithEndTime
ReportInstanceStatusRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: ReportInstanceStatusRequest.h:145
DateTime.h
Aws::EC2::Model::ReportInstanceStatusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ReportInstanceStatusRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: ReportInstanceStatusRequest.h:355
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ReportInstanceStatusRequest::ReportInstanceStatusRequest
ReportInstanceStatusRequest()
Aws::EC2::Model::ReportInstanceStatusRequest::AddInstances
ReportInstanceStatusRequest & AddInstances(const Aws::String &value)
Definition: ReportInstanceStatusRequest.h:181
Aws::EC2::Model::ReportInstanceStatusRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: ReportInstanceStatusRequest.h:365
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ReportInstanceStatusRequest::GetInstances
const Aws::Vector< Aws::String > & GetInstances() const
Definition: ReportInstanceStatusRequest.h:151
Aws::EC2::Model::ReportInstanceStatusRequest::WithDryRun
ReportInstanceStatusRequest & WithDryRun(bool value)
Definition: ReportInstanceStatusRequest.h:114
Aws::EC2::Model::ReportInstanceStatusRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: ReportInstanceStatusRequest.h:61
Aws::EC2::Model::ReportInstanceStatusRequest::InstancesHasBeenSet
bool InstancesHasBeenSet() const
Definition: ReportInstanceStatusRequest.h:156
Aws::EC2::Model::ReportInstanceStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ReportInstanceStatusRequest.h:34
AWSVector.h
Aws::EC2::Model::ReportInstanceStatusRequest::WithDescription
ReportInstanceStatusRequest & WithDescription(const char *value)
Definition: ReportInstanceStatusRequest.h:81
Aws::EC2::Model::ReportInstanceStatusRequest::WithStartTime
ReportInstanceStatusRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: ReportInstanceStatusRequest.h:375
Aws::EC2::Model::ReportInstanceStatusRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: ReportInstanceStatusRequest.h:120
ReportStatusType.h
Aws::EC2::Model::ReportInstanceStatusRequest::WithEndTime
ReportInstanceStatusRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: ReportInstanceStatusRequest.h:140
Aws::EC2::Model::ReportInstanceStatusRequest::WithReasonCodes
ReportInstanceStatusRequest & WithReasonCodes(const Aws::Vector< ReportInstanceReasonCodes > &value)
Definition: ReportInstanceStatusRequest.h:287
Aws::EC2::Model::ReportInstanceStatusRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ReportInstanceStatusRequest.h:98
Aws::EC2::Model::ReportInstanceStatusRequest::SetDescription
void SetDescription(const char *value)
Definition: ReportInstanceStatusRequest.h:66
Aws::EC2::Model::ReportInstanceStatusRequest
Definition: ReportInstanceStatusRequest.h:26
Aws::EC2::Model::ReportStatusType
ReportStatusType
Definition: ReportStatusType.h:17
ReportInstanceReasonCodes.h
Aws::EC2::Model::ReportInstanceStatusRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2Request.h
Aws::EC2::Model::ReportInstanceStatusRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: ReportInstanceStatusRequest.h:360
Aws::EC2::Model::ReportInstanceStatusRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: ReportInstanceStatusRequest.h:56
AWSString.h
Aws::EC2::Model::ReportInstanceStatusRequest::SetInstances
void SetInstances(Aws::Vector< Aws::String > &&value)
Definition: ReportInstanceStatusRequest.h:166
Aws::EC2::Model::ReportInstanceStatusRequest::AddReasonCodes
ReportInstanceStatusRequest & AddReasonCodes(const ReportInstanceReasonCodes &value)
Definition: ReportInstanceStatusRequest.h:325
Aws::EC2::Model::ReportInstanceStatusRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: ReportInstanceStatusRequest.h:350
Aws::EC2::Model::ReportInstanceStatusRequest::SetInstances
void SetInstances(const Aws::Vector< Aws::String > &value)
Definition: ReportInstanceStatusRequest.h:161
Aws::EC2::Model::ReportInstanceStatusRequest::SetStatus
void SetStatus(const ReportStatusType &value)
Definition: ReportInstanceStatusRequest.h:391
Aws::EC2::Model::ReportInstanceStatusRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: ReportInstanceStatusRequest.h:125
Aws::EC2::Model::ReportInstanceStatusRequest::WithInstances
ReportInstanceStatusRequest & WithInstances(const Aws::Vector< Aws::String > &value)
Definition: ReportInstanceStatusRequest.h:171
Aws::EC2::Model::ReportInstanceStatusRequest::WithInstances
ReportInstanceStatusRequest & WithInstances(Aws::Vector< Aws::String > &&value)
Definition: ReportInstanceStatusRequest.h:176
Aws::EC2::Model::ReportInstanceStatusRequest::WithDescription
ReportInstanceStatusRequest & WithDescription(Aws::String &&value)
Definition: ReportInstanceStatusRequest.h:76
Aws::EC2::Model::ReportInstanceStatusRequest::SetReasonCodes
void SetReasonCodes(const Aws::Vector< ReportInstanceReasonCodes > &value)
Definition: ReportInstanceStatusRequest.h:249
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ReportInstanceStatusRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ReportInstanceStatusRequest.h:51
Aws::EC2::Model::ReportInstanceStatusRequest::WithStatus
ReportInstanceStatusRequest & WithStatus(ReportStatusType &&value)
Definition: ReportInstanceStatusRequest.h:406
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ReportInstanceStatusRequest::SetDryRun
void SetDryRun(bool value)
Definition: ReportInstanceStatusRequest.h:106
Aws::EC2::Model::ReportInstanceStatusRequest::GetDryRun
bool GetDryRun() const
Definition: ReportInstanceStatusRequest.h:90
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ReportInstanceStatusRequest::ReasonCodesHasBeenSet
bool ReasonCodesHasBeenSet() const
Definition: ReportInstanceStatusRequest.h:230
Aws::EC2::Model::ReportInstanceStatusRequest::WithStartTime
ReportInstanceStatusRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: ReportInstanceStatusRequest.h:370
Aws::EC2::Model::ReportInstanceStatusRequest::WithStatus
ReportInstanceStatusRequest & WithStatus(const ReportStatusType &value)
Definition: ReportInstanceStatusRequest.h:401
Aws::EC2::Model::ReportInstanceReasonCodes
ReportInstanceReasonCodes
Definition: ReportInstanceReasonCodes.h:17
EC2_EXPORTS.h
Aws::EC2::Model::ReportInstanceStatusRequest::WithDescription
ReportInstanceStatusRequest & WithDescription(const Aws::String &value)
Definition: ReportInstanceStatusRequest.h:71
Aws::EC2::Model::ReportInstanceStatusRequest::GetReasonCodes
const Aws::Vector< ReportInstanceReasonCodes > & GetReasonCodes() const
Definition: ReportInstanceStatusRequest.h:211
Aws::EC2::Model::ReportInstanceStatusRequest::AddInstances
ReportInstanceStatusRequest & AddInstances(Aws::String &&value)
Definition: ReportInstanceStatusRequest.h:186
Aws::EC2::Model::ReportInstanceStatusRequest::GetDescription
const Aws::String & GetDescription() const
Definition: ReportInstanceStatusRequest.h:46
Aws::EC2::Model::ReportInstanceStatusRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: ReportInstanceStatusRequest.h:130