/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about the error for the burstable performance instance whose
* credit option for CPU usage was not modified.See Also:
AWS
* API Reference
The error code.
*/ inline const UnsuccessfulInstanceCreditSpecificationErrorCode& GetCode() const{ return m_code; } /** *The error code.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The error code.
*/ inline void SetCode(const UnsuccessfulInstanceCreditSpecificationErrorCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *The error code.
*/ inline void SetCode(UnsuccessfulInstanceCreditSpecificationErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The error code.
*/ inline UnsuccessfulInstanceCreditSpecificationItemError& WithCode(const UnsuccessfulInstanceCreditSpecificationErrorCode& value) { SetCode(value); return *this;} /** *The error code.
*/ inline UnsuccessfulInstanceCreditSpecificationItemError& WithCode(UnsuccessfulInstanceCreditSpecificationErrorCode&& value) { SetCode(std::move(value)); return *this;} /** *The applicable error message.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The applicable error message.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The applicable error message.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The applicable error message.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The applicable error message.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The applicable error message.
*/ inline UnsuccessfulInstanceCreditSpecificationItemError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The applicable error message.
*/ inline UnsuccessfulInstanceCreditSpecificationItemError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The applicable error message.
*/ inline UnsuccessfulInstanceCreditSpecificationItemError& WithMessage(const char* value) { SetMessage(value); return *this;} private: UnsuccessfulInstanceCreditSpecificationErrorCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws