/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a Spot Fleet request that was successfully canceled.

See * Also:

AWS * API Reference

*/ class CancelSpotFleetRequestsSuccessItem { public: AWS_EC2_API CancelSpotFleetRequestsSuccessItem(); AWS_EC2_API CancelSpotFleetRequestsSuccessItem(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API CancelSpotFleetRequestsSuccessItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The current state of the Spot Fleet request.

*/ inline const BatchState& GetCurrentSpotFleetRequestState() const{ return m_currentSpotFleetRequestState; } /** *

The current state of the Spot Fleet request.

*/ inline bool CurrentSpotFleetRequestStateHasBeenSet() const { return m_currentSpotFleetRequestStateHasBeenSet; } /** *

The current state of the Spot Fleet request.

*/ inline void SetCurrentSpotFleetRequestState(const BatchState& value) { m_currentSpotFleetRequestStateHasBeenSet = true; m_currentSpotFleetRequestState = value; } /** *

The current state of the Spot Fleet request.

*/ inline void SetCurrentSpotFleetRequestState(BatchState&& value) { m_currentSpotFleetRequestStateHasBeenSet = true; m_currentSpotFleetRequestState = std::move(value); } /** *

The current state of the Spot Fleet request.

*/ inline CancelSpotFleetRequestsSuccessItem& WithCurrentSpotFleetRequestState(const BatchState& value) { SetCurrentSpotFleetRequestState(value); return *this;} /** *

The current state of the Spot Fleet request.

*/ inline CancelSpotFleetRequestsSuccessItem& WithCurrentSpotFleetRequestState(BatchState&& value) { SetCurrentSpotFleetRequestState(std::move(value)); return *this;} /** *

The previous state of the Spot Fleet request.

*/ inline const BatchState& GetPreviousSpotFleetRequestState() const{ return m_previousSpotFleetRequestState; } /** *

The previous state of the Spot Fleet request.

*/ inline bool PreviousSpotFleetRequestStateHasBeenSet() const { return m_previousSpotFleetRequestStateHasBeenSet; } /** *

The previous state of the Spot Fleet request.

*/ inline void SetPreviousSpotFleetRequestState(const BatchState& value) { m_previousSpotFleetRequestStateHasBeenSet = true; m_previousSpotFleetRequestState = value; } /** *

The previous state of the Spot Fleet request.

*/ inline void SetPreviousSpotFleetRequestState(BatchState&& value) { m_previousSpotFleetRequestStateHasBeenSet = true; m_previousSpotFleetRequestState = std::move(value); } /** *

The previous state of the Spot Fleet request.

*/ inline CancelSpotFleetRequestsSuccessItem& WithPreviousSpotFleetRequestState(const BatchState& value) { SetPreviousSpotFleetRequestState(value); return *this;} /** *

The previous state of the Spot Fleet request.

*/ inline CancelSpotFleetRequestsSuccessItem& WithPreviousSpotFleetRequestState(BatchState&& value) { SetPreviousSpotFleetRequestState(std::move(value)); return *this;} /** *

The ID of the Spot Fleet request.

*/ inline const Aws::String& GetSpotFleetRequestId() const{ return m_spotFleetRequestId; } /** *

The ID of the Spot Fleet request.

*/ inline bool SpotFleetRequestIdHasBeenSet() const { return m_spotFleetRequestIdHasBeenSet; } /** *

The ID of the Spot Fleet request.

*/ inline void SetSpotFleetRequestId(const Aws::String& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = value; } /** *

The ID of the Spot Fleet request.

*/ inline void SetSpotFleetRequestId(Aws::String&& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = std::move(value); } /** *

The ID of the Spot Fleet request.

*/ inline void SetSpotFleetRequestId(const char* value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId.assign(value); } /** *

The ID of the Spot Fleet request.

*/ inline CancelSpotFleetRequestsSuccessItem& WithSpotFleetRequestId(const Aws::String& value) { SetSpotFleetRequestId(value); return *this;} /** *

The ID of the Spot Fleet request.

*/ inline CancelSpotFleetRequestsSuccessItem& WithSpotFleetRequestId(Aws::String&& value) { SetSpotFleetRequestId(std::move(value)); return *this;} /** *

The ID of the Spot Fleet request.

*/ inline CancelSpotFleetRequestsSuccessItem& WithSpotFleetRequestId(const char* value) { SetSpotFleetRequestId(value); return *this;} private: BatchState m_currentSpotFleetRequestState; bool m_currentSpotFleetRequestStateHasBeenSet = false; BatchState m_previousSpotFleetRequestState; bool m_previousSpotFleetRequestStateHasBeenSet = false; Aws::String m_spotFleetRequestId; bool m_spotFleetRequestIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws