AWS SDK for C++  1.9.71
AWS SDK for C++
DescribeFleetHistoryResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 template<typename RESULT_TYPE>
18 class AmazonWebServiceResult;
19 
20 namespace Utils
21 {
22 namespace Xml
23 {
24  class XmlDocument;
25 } // namespace Xml
26 } // namespace Utils
27 namespace EC2
28 {
29 namespace Model
30 {
32  {
33  public:
37 
38 
42  inline const Aws::Vector<HistoryRecordEntry>& GetHistoryRecords() const{ return m_historyRecords; }
43 
47  inline void SetHistoryRecords(const Aws::Vector<HistoryRecordEntry>& value) { m_historyRecords = value; }
48 
52  inline void SetHistoryRecords(Aws::Vector<HistoryRecordEntry>&& value) { m_historyRecords = std::move(value); }
53 
57  inline DescribeFleetHistoryResponse& WithHistoryRecords(const Aws::Vector<HistoryRecordEntry>& value) { SetHistoryRecords(value); return *this;}
58 
62  inline DescribeFleetHistoryResponse& WithHistoryRecords(Aws::Vector<HistoryRecordEntry>&& value) { SetHistoryRecords(std::move(value)); return *this;}
63 
67  inline DescribeFleetHistoryResponse& AddHistoryRecords(const HistoryRecordEntry& value) { m_historyRecords.push_back(value); return *this; }
68 
72  inline DescribeFleetHistoryResponse& AddHistoryRecords(HistoryRecordEntry&& value) { m_historyRecords.push_back(std::move(value)); return *this; }
73 
74 
81  inline const Aws::Utils::DateTime& GetLastEvaluatedTime() const{ return m_lastEvaluatedTime; }
82 
89  inline void SetLastEvaluatedTime(const Aws::Utils::DateTime& value) { m_lastEvaluatedTime = value; }
90 
97  inline void SetLastEvaluatedTime(Aws::Utils::DateTime&& value) { m_lastEvaluatedTime = std::move(value); }
98 
105  inline DescribeFleetHistoryResponse& WithLastEvaluatedTime(const Aws::Utils::DateTime& value) { SetLastEvaluatedTime(value); return *this;}
106 
113  inline DescribeFleetHistoryResponse& WithLastEvaluatedTime(Aws::Utils::DateTime&& value) { SetLastEvaluatedTime(std::move(value)); return *this;}
114 
115 
119  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
120 
124  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
125 
129  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
130 
134  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
135 
139  inline DescribeFleetHistoryResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
140 
144  inline DescribeFleetHistoryResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
145 
149  inline DescribeFleetHistoryResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
150 
151 
155  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
156 
160  inline void SetFleetId(const Aws::String& value) { m_fleetId = value; }
161 
165  inline void SetFleetId(Aws::String&& value) { m_fleetId = std::move(value); }
166 
170  inline void SetFleetId(const char* value) { m_fleetId.assign(value); }
171 
175  inline DescribeFleetHistoryResponse& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
176 
180  inline DescribeFleetHistoryResponse& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
181 
185  inline DescribeFleetHistoryResponse& WithFleetId(const char* value) { SetFleetId(value); return *this;}
186 
187 
192  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
193 
198  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; }
199 
204  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); }
205 
210  inline DescribeFleetHistoryResponse& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
211 
216  inline DescribeFleetHistoryResponse& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
217 
218 
219 
220  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
221 
222 
223  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
224 
225 
226  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
227 
228 
229  inline DescribeFleetHistoryResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
230 
231 
232  inline DescribeFleetHistoryResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
233 
234  private:
235 
236  Aws::Vector<HistoryRecordEntry> m_historyRecords;
237 
238  Aws::Utils::DateTime m_lastEvaluatedTime;
239 
240  Aws::String m_nextToken;
241 
242  Aws::String m_fleetId;
243 
244  Aws::Utils::DateTime m_startTime;
245 
246  ResponseMetadata m_responseMetadata;
247  };
248 
249 } // namespace Model
250 } // namespace EC2
251 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeFleetHistoryResponse::GetFleetId
const Aws::String & GetFleetId() const
Definition: DescribeFleetHistoryResponse.h:155
Aws::EC2::Model::DescribeFleetHistoryResponse::SetLastEvaluatedTime
void SetLastEvaluatedTime(Aws::Utils::DateTime &&value)
Definition: DescribeFleetHistoryResponse.h:97
Aws::EC2::Model::DescribeFleetHistoryResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeFleetHistoryResponse.h:220
Aws::EC2::Model::DescribeFleetHistoryResponse::WithLastEvaluatedTime
DescribeFleetHistoryResponse & WithLastEvaluatedTime(Aws::Utils::DateTime &&value)
Definition: DescribeFleetHistoryResponse.h:113
Aws::EC2::Model::DescribeFleetHistoryResponse::SetHistoryRecords
void SetHistoryRecords(Aws::Vector< HistoryRecordEntry > &&value)
Definition: DescribeFleetHistoryResponse.h:52
Aws::EC2::Model::DescribeFleetHistoryResponse::WithStartTime
DescribeFleetHistoryResponse & WithStartTime(Aws::Utils::DateTime &&value)
Definition: DescribeFleetHistoryResponse.h:216
DateTime.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
HistoryRecordEntry.h
Aws::EC2::Model::DescribeFleetHistoryResponse::WithFleetId
DescribeFleetHistoryResponse & WithFleetId(const char *value)
Definition: DescribeFleetHistoryResponse.h:185
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeFleetHistoryResponse::AddHistoryRecords
DescribeFleetHistoryResponse & AddHistoryRecords(const HistoryRecordEntry &value)
Definition: DescribeFleetHistoryResponse.h:67
AWSVector.h
Aws::EC2::Model::DescribeFleetHistoryResponse::WithHistoryRecords
DescribeFleetHistoryResponse & WithHistoryRecords(const Aws::Vector< HistoryRecordEntry > &value)
Definition: DescribeFleetHistoryResponse.h:57
Aws::EC2::Model::DescribeFleetHistoryResponse::WithFleetId
DescribeFleetHistoryResponse & WithFleetId(Aws::String &&value)
Definition: DescribeFleetHistoryResponse.h:180
Aws::EC2::Model::DescribeFleetHistoryResponse::WithFleetId
DescribeFleetHistoryResponse & WithFleetId(const Aws::String &value)
Definition: DescribeFleetHistoryResponse.h:175
Aws::EC2::Model::DescribeFleetHistoryResponse::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: DescribeFleetHistoryResponse.h:165
Aws::EC2::Model::DescribeFleetHistoryResponse::WithStartTime
DescribeFleetHistoryResponse & WithStartTime(const Aws::Utils::DateTime &value)
Definition: DescribeFleetHistoryResponse.h:210
Aws::EC2::Model::DescribeFleetHistoryResponse::SetFleetId
void SetFleetId(const char *value)
Definition: DescribeFleetHistoryResponse.h:170
Aws::EC2::Model::DescribeFleetHistoryResponse::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: DescribeFleetHistoryResponse.h:192
Aws::EC2::Model::DescribeFleetHistoryResponse::WithHistoryRecords
DescribeFleetHistoryResponse & WithHistoryRecords(Aws::Vector< HistoryRecordEntry > &&value)
Definition: DescribeFleetHistoryResponse.h:62
Aws::EC2::Model::DescribeFleetHistoryResponse::SetLastEvaluatedTime
void SetLastEvaluatedTime(const Aws::Utils::DateTime &value)
Definition: DescribeFleetHistoryResponse.h:89
Aws::EC2::Model::DescribeFleetHistoryResponse::WithLastEvaluatedTime
DescribeFleetHistoryResponse & WithLastEvaluatedTime(const Aws::Utils::DateTime &value)
Definition: DescribeFleetHistoryResponse.h:105
Aws::EC2::Model::DescribeFleetHistoryResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeFleetHistoryResponse.h:226
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::DescribeFleetHistoryResponse::AddHistoryRecords
DescribeFleetHistoryResponse & AddHistoryRecords(HistoryRecordEntry &&value)
Definition: DescribeFleetHistoryResponse.h:72
Aws::EC2::Model::HistoryRecordEntry
Definition: HistoryRecordEntry.h:35
Aws::EC2::Model::DescribeFleetHistoryResponse::WithNextToken
DescribeFleetHistoryResponse & WithNextToken(Aws::String &&value)
Definition: DescribeFleetHistoryResponse.h:144
Aws::EC2::Model::DescribeFleetHistoryResponse::DescribeFleetHistoryResponse
DescribeFleetHistoryResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeFleetHistoryResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeFleetHistoryResponse.h:124
Aws::EC2::Model::DescribeFleetHistoryResponse::DescribeFleetHistoryResponse
DescribeFleetHistoryResponse()
Aws::EC2::Model::DescribeFleetHistoryResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeFleetHistoryResponse.h:119
Aws::EC2::Model::DescribeFleetHistoryResponse::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: DescribeFleetHistoryResponse.h:198
Aws::EC2::Model::DescribeFleetHistoryResponse
Definition: DescribeFleetHistoryResponse.h:32
Aws::EC2::Model::DescribeFleetHistoryResponse::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: DescribeFleetHistoryResponse.h:160
Aws::EC2::Model::DescribeFleetHistoryResponse::SetHistoryRecords
void SetHistoryRecords(const Aws::Vector< HistoryRecordEntry > &value)
Definition: DescribeFleetHistoryResponse.h:47
Aws::EC2::Model::DescribeFleetHistoryResponse::GetLastEvaluatedTime
const Aws::Utils::DateTime & GetLastEvaluatedTime() const
Definition: DescribeFleetHistoryResponse.h:81
Aws::EC2::Model::DescribeFleetHistoryResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeFleetHistoryResponse.h:223
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeFleetHistoryResponse::WithNextToken
DescribeFleetHistoryResponse & WithNextToken(const char *value)
Definition: DescribeFleetHistoryResponse.h:149
Aws::EC2::Model::DescribeFleetHistoryResponse::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeFleetHistoryResponse.h:134
Aws::EC2::Model::DescribeFleetHistoryResponse::GetHistoryRecords
const Aws::Vector< HistoryRecordEntry > & GetHistoryRecords() const
Definition: DescribeFleetHistoryResponse.h:42
Aws::EC2::Model::DescribeFleetHistoryResponse::operator=
DescribeFleetHistoryResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeFleetHistoryResponse::WithResponseMetadata
DescribeFleetHistoryResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeFleetHistoryResponse.h:232
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeFleetHistoryResponse::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: DescribeFleetHistoryResponse.h:204
EC2_EXPORTS.h
Aws::EC2::Model::DescribeFleetHistoryResponse::WithResponseMetadata
DescribeFleetHistoryResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeFleetHistoryResponse.h:229
Aws::EC2::Model::DescribeFleetHistoryResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeFleetHistoryResponse.h:129
Aws::EC2::Model::DescribeFleetHistoryResponse::WithNextToken
DescribeFleetHistoryResponse & WithNextToken(const Aws::String &value)
Definition: DescribeFleetHistoryResponse.h:139