AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeFleetHistoryResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/HistoryRecordEntry.h>
13#include <aws/ec2/model/ResponseMetadata.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace EC2 {
27namespace Model {
29 public:
30 AWS_EC2_API DescribeFleetHistoryResponse() = default;
33
35
38 inline const Aws::Vector<HistoryRecordEntry>& GetHistoryRecords() const { return m_historyRecords; }
39 template <typename HistoryRecordsT = Aws::Vector<HistoryRecordEntry>>
40 void SetHistoryRecords(HistoryRecordsT&& value) {
41 m_historyRecordsHasBeenSet = true;
42 m_historyRecords = std::forward<HistoryRecordsT>(value);
43 }
44 template <typename HistoryRecordsT = Aws::Vector<HistoryRecordEntry>>
46 SetHistoryRecords(std::forward<HistoryRecordsT>(value));
47 return *this;
48 }
49 template <typename HistoryRecordsT = HistoryRecordEntry>
51 m_historyRecordsHasBeenSet = true;
52 m_historyRecords.emplace_back(std::forward<HistoryRecordsT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::Utils::DateTime& GetLastEvaluatedTime() const { return m_lastEvaluatedTime; }
65 template <typename LastEvaluatedTimeT = Aws::Utils::DateTime>
66 void SetLastEvaluatedTime(LastEvaluatedTimeT&& value) {
67 m_lastEvaluatedTimeHasBeenSet = true;
68 m_lastEvaluatedTime = std::forward<LastEvaluatedTimeT>(value);
69 }
70 template <typename LastEvaluatedTimeT = Aws::Utils::DateTime>
72 SetLastEvaluatedTime(std::forward<LastEvaluatedTimeT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetNextToken() const { return m_nextToken; }
83 template <typename NextTokenT = Aws::String>
84 void SetNextToken(NextTokenT&& value) {
85 m_nextTokenHasBeenSet = true;
86 m_nextToken = std::forward<NextTokenT>(value);
87 }
88 template <typename NextTokenT = Aws::String>
90 SetNextToken(std::forward<NextTokenT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetFleetId() const { return m_fleetId; }
100 template <typename FleetIdT = Aws::String>
101 void SetFleetId(FleetIdT&& value) {
102 m_fleetIdHasBeenSet = true;
103 m_fleetId = std::forward<FleetIdT>(value);
104 }
105 template <typename FleetIdT = Aws::String>
107 SetFleetId(std::forward<FleetIdT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
118 template <typename StartTimeT = Aws::Utils::DateTime>
119 void SetStartTime(StartTimeT&& value) {
120 m_startTimeHasBeenSet = true;
121 m_startTime = std::forward<StartTimeT>(value);
122 }
123 template <typename StartTimeT = Aws::Utils::DateTime>
125 SetStartTime(std::forward<StartTimeT>(value));
126 return *this;
127 }
129
131
132 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
133 template <typename ResponseMetadataT = ResponseMetadata>
134 void SetResponseMetadata(ResponseMetadataT&& value) {
135 m_responseMetadataHasBeenSet = true;
136 m_responseMetadata = std::forward<ResponseMetadataT>(value);
137 }
138 template <typename ResponseMetadataT = ResponseMetadata>
140 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
141 return *this;
142 }
144 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
145
146 private:
147 Aws::Vector<HistoryRecordEntry> m_historyRecords;
148
149 Aws::Utils::DateTime m_lastEvaluatedTime{};
150
151 Aws::String m_nextToken;
152
153 Aws::String m_fleetId;
154
155 Aws::Utils::DateTime m_startTime{};
156
157 ResponseMetadata m_responseMetadata;
158 Aws::Http::HttpResponseCode m_HttpResponseCode;
159 bool m_historyRecordsHasBeenSet = false;
160 bool m_lastEvaluatedTimeHasBeenSet = false;
161 bool m_nextTokenHasBeenSet = false;
162 bool m_fleetIdHasBeenSet = false;
163 bool m_startTimeHasBeenSet = false;
164 bool m_responseMetadataHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace EC2
169} // namespace Aws
DescribeFleetHistoryResponse & WithHistoryRecords(HistoryRecordsT &&value)
DescribeFleetHistoryResponse & WithNextToken(NextTokenT &&value)
AWS_EC2_API DescribeFleetHistoryResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeFleetHistoryResponse & WithLastEvaluatedTime(LastEvaluatedTimeT &&value)
AWS_EC2_API DescribeFleetHistoryResponse()=default
AWS_EC2_API DescribeFleetHistoryResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeFleetHistoryResponse & WithFleetId(FleetIdT &&value)
DescribeFleetHistoryResponse & AddHistoryRecords(HistoryRecordsT &&value)
const Aws::Vector< HistoryRecordEntry > & GetHistoryRecords() const
DescribeFleetHistoryResponse & WithResponseMetadata(ResponseMetadataT &&value)
const Aws::Utils::DateTime & GetLastEvaluatedTime() const
DescribeFleetHistoryResponse & WithStartTime(StartTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument