/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a Spot Fleet error.See Also:
AWS
* API Reference
The error code.
*/ inline const CancelBatchErrorCode& GetCode() const{ return m_code; } /** *The error code.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The error code.
*/ inline void SetCode(const CancelBatchErrorCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *The error code.
*/ inline void SetCode(CancelBatchErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The error code.
*/ inline CancelSpotFleetRequestsError& WithCode(const CancelBatchErrorCode& value) { SetCode(value); return *this;} /** *The error code.
*/ inline CancelSpotFleetRequestsError& WithCode(CancelBatchErrorCode&& value) { SetCode(std::move(value)); return *this;} /** *The description for the error code.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The description for the error code.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The description for the error code.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The description for the error code.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The description for the error code.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The description for the error code.
*/ inline CancelSpotFleetRequestsError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The description for the error code.
*/ inline CancelSpotFleetRequestsError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The description for the error code.
*/ inline CancelSpotFleetRequestsError& WithMessage(const char* value) { SetMessage(value); return *this;} private: CancelBatchErrorCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws