AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeFleetHistoryResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12#include <aws/ec2/model/HistoryRecordEntry.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Xml
23{
24 class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
32 {
33 public:
34 AWS_EC2_API DescribeFleetHistoryResponse() = default;
37
38
40
43 inline const Aws::Vector<HistoryRecordEntry>& GetHistoryRecords() const { return m_historyRecords; }
44 template<typename HistoryRecordsT = Aws::Vector<HistoryRecordEntry>>
45 void SetHistoryRecords(HistoryRecordsT&& value) { m_historyRecordsHasBeenSet = true; m_historyRecords = std::forward<HistoryRecordsT>(value); }
46 template<typename HistoryRecordsT = Aws::Vector<HistoryRecordEntry>>
47 DescribeFleetHistoryResponse& WithHistoryRecords(HistoryRecordsT&& value) { SetHistoryRecords(std::forward<HistoryRecordsT>(value)); return *this;}
48 template<typename HistoryRecordsT = HistoryRecordEntry>
49 DescribeFleetHistoryResponse& AddHistoryRecords(HistoryRecordsT&& value) { m_historyRecordsHasBeenSet = true; m_historyRecords.emplace_back(std::forward<HistoryRecordsT>(value)); return *this; }
51
53
59 inline const Aws::Utils::DateTime& GetLastEvaluatedTime() const { return m_lastEvaluatedTime; }
60 template<typename LastEvaluatedTimeT = Aws::Utils::DateTime>
61 void SetLastEvaluatedTime(LastEvaluatedTimeT&& value) { m_lastEvaluatedTimeHasBeenSet = true; m_lastEvaluatedTime = std::forward<LastEvaluatedTimeT>(value); }
62 template<typename LastEvaluatedTimeT = Aws::Utils::DateTime>
63 DescribeFleetHistoryResponse& WithLastEvaluatedTime(LastEvaluatedTimeT&& value) { SetLastEvaluatedTime(std::forward<LastEvaluatedTimeT>(value)); return *this;}
65
67
71 inline const Aws::String& GetNextToken() const { return m_nextToken; }
72 template<typename NextTokenT = Aws::String>
73 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
74 template<typename NextTokenT = Aws::String>
75 DescribeFleetHistoryResponse& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
77
79
82 inline const Aws::String& GetFleetId() const { return m_fleetId; }
83 template<typename FleetIdT = Aws::String>
84 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
85 template<typename FleetIdT = Aws::String>
86 DescribeFleetHistoryResponse& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
88
90
94 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
95 template<typename StartTimeT = Aws::Utils::DateTime>
96 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
97 template<typename StartTimeT = Aws::Utils::DateTime>
98 DescribeFleetHistoryResponse& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
100
102
103 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
104 template<typename ResponseMetadataT = ResponseMetadata>
105 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
106 template<typename ResponseMetadataT = ResponseMetadata>
107 DescribeFleetHistoryResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
109 private:
110
111 Aws::Vector<HistoryRecordEntry> m_historyRecords;
112 bool m_historyRecordsHasBeenSet = false;
113
114 Aws::Utils::DateTime m_lastEvaluatedTime{};
115 bool m_lastEvaluatedTimeHasBeenSet = false;
116
117 Aws::String m_nextToken;
118 bool m_nextTokenHasBeenSet = false;
119
120 Aws::String m_fleetId;
121 bool m_fleetIdHasBeenSet = false;
122
123 Aws::Utils::DateTime m_startTime{};
124 bool m_startTimeHasBeenSet = false;
125
126 ResponseMetadata m_responseMetadata;
127 bool m_responseMetadataHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace EC2
132} // 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