/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class DescribeFleetHistoryResponse { public: AWS_EC2_API DescribeFleetHistoryResponse(); AWS_EC2_API DescribeFleetHistoryResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API DescribeFleetHistoryResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about the events in the history of the EC2 Fleet.

*/ inline const Aws::Vector& GetHistoryRecords() const{ return m_historyRecords; } /** *

Information about the events in the history of the EC2 Fleet.

*/ inline void SetHistoryRecords(const Aws::Vector& value) { m_historyRecords = value; } /** *

Information about the events in the history of the EC2 Fleet.

*/ inline void SetHistoryRecords(Aws::Vector&& value) { m_historyRecords = std::move(value); } /** *

Information about the events in the history of the EC2 Fleet.

*/ inline DescribeFleetHistoryResponse& WithHistoryRecords(const Aws::Vector& value) { SetHistoryRecords(value); return *this;} /** *

Information about the events in the history of the EC2 Fleet.

*/ inline DescribeFleetHistoryResponse& WithHistoryRecords(Aws::Vector&& value) { SetHistoryRecords(std::move(value)); return *this;} /** *

Information about the events in the history of the EC2 Fleet.

*/ inline DescribeFleetHistoryResponse& AddHistoryRecords(const HistoryRecordEntry& value) { m_historyRecords.push_back(value); return *this; } /** *

Information about the events in the history of the EC2 Fleet.

*/ inline DescribeFleetHistoryResponse& AddHistoryRecords(HistoryRecordEntry&& value) { m_historyRecords.push_back(std::move(value)); return *this; } /** *

The last date and time for the events, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ). All records up * to this time were retrieved.

If nextToken indicates that * there are more items, this value is not present.

*/ inline const Aws::Utils::DateTime& GetLastEvaluatedTime() const{ return m_lastEvaluatedTime; } /** *

The last date and time for the events, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ). All records up * to this time were retrieved.

If nextToken indicates that * there are more items, this value is not present.

*/ inline void SetLastEvaluatedTime(const Aws::Utils::DateTime& value) { m_lastEvaluatedTime = value; } /** *

The last date and time for the events, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ). All records up * to this time were retrieved.

If nextToken indicates that * there are more items, this value is not present.

*/ inline void SetLastEvaluatedTime(Aws::Utils::DateTime&& value) { m_lastEvaluatedTime = std::move(value); } /** *

The last date and time for the events, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ). All records up * to this time were retrieved.

If nextToken indicates that * there are more items, this value is not present.

*/ inline DescribeFleetHistoryResponse& WithLastEvaluatedTime(const Aws::Utils::DateTime& value) { SetLastEvaluatedTime(value); return *this;} /** *

The last date and time for the events, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ). All records up * to this time were retrieved.

If nextToken indicates that * there are more items, this value is not present.

*/ inline DescribeFleetHistoryResponse& WithLastEvaluatedTime(Aws::Utils::DateTime&& value) { SetLastEvaluatedTime(std::move(value)); return *this;} /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline DescribeFleetHistoryResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline DescribeFleetHistoryResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

*/ inline DescribeFleetHistoryResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The ID of the EC Fleet.

*/ inline const Aws::String& GetFleetId() const{ return m_fleetId; } /** *

The ID of the EC Fleet.

*/ inline void SetFleetId(const Aws::String& value) { m_fleetId = value; } /** *

The ID of the EC Fleet.

*/ inline void SetFleetId(Aws::String&& value) { m_fleetId = std::move(value); } /** *

The ID of the EC Fleet.

*/ inline void SetFleetId(const char* value) { m_fleetId.assign(value); } /** *

The ID of the EC Fleet.

*/ inline DescribeFleetHistoryResponse& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;} /** *

The ID of the EC Fleet.

*/ inline DescribeFleetHistoryResponse& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;} /** *

The ID of the EC Fleet.

*/ inline DescribeFleetHistoryResponse& WithFleetId(const char* value) { SetFleetId(value); return *this;} /** *

The start date and time for the events, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ).

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start date and time for the events, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ).

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; } /** *

The start date and time for the events, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ).

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); } /** *

The start date and time for the events, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ).

*/ inline DescribeFleetHistoryResponse& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start date and time for the events, in UTC format (for example, * YYYY-MM-DDTHH:MM:SSZ).

*/ inline DescribeFleetHistoryResponse& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline DescribeFleetHistoryResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline DescribeFleetHistoryResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Vector m_historyRecords; Aws::Utils::DateTime m_lastEvaluatedTime; Aws::String m_nextToken; Aws::String m_fleetId; Aws::Utils::DateTime m_startTime; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws