/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a Spot Fleet request that was not successfully
* canceled.See Also:
AWS
* API Reference
The error.
*/ inline const CancelSpotFleetRequestsError& GetError() const{ return m_error; } /** *The error.
*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *The error.
*/ inline void SetError(const CancelSpotFleetRequestsError& value) { m_errorHasBeenSet = true; m_error = value; } /** *The error.
*/ inline void SetError(CancelSpotFleetRequestsError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *The error.
*/ inline CancelSpotFleetRequestsErrorItem& WithError(const CancelSpotFleetRequestsError& value) { SetError(value); return *this;} /** *The error.
*/ inline CancelSpotFleetRequestsErrorItem& WithError(CancelSpotFleetRequestsError&& value) { SetError(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 CancelSpotFleetRequestsErrorItem& WithSpotFleetRequestId(const Aws::String& value) { SetSpotFleetRequestId(value); return *this;} /** *The ID of the Spot Fleet request.
*/ inline CancelSpotFleetRequestsErrorItem& WithSpotFleetRequestId(Aws::String&& value) { SetSpotFleetRequestId(std::move(value)); return *this;} /** *The ID of the Spot Fleet request.
*/ inline CancelSpotFleetRequestsErrorItem& WithSpotFleetRequestId(const char* value) { SetSpotFleetRequestId(value); return *this;} private: CancelSpotFleetRequestsError m_error; bool m_errorHasBeenSet = false; Aws::String m_spotFleetRequestId; bool m_spotFleetRequestIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws