/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the burstable performance instance whose credit option for CPU
* usage was not modified.See Also:
AWS
* API Reference
The ID of the instance.
*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *The ID of the instance.
*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *The ID of the instance.
*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *The ID of the instance.
*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *The ID of the instance.
*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *The ID of the instance.
*/ inline UnsuccessfulInstanceCreditSpecificationItem& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *The ID of the instance.
*/ inline UnsuccessfulInstanceCreditSpecificationItem& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *The ID of the instance.
*/ inline UnsuccessfulInstanceCreditSpecificationItem& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *The applicable error for the burstable performance instance whose credit * option for CPU usage was not modified.
*/ inline const UnsuccessfulInstanceCreditSpecificationItemError& GetError() const{ return m_error; } /** *The applicable error for the burstable performance instance whose credit * option for CPU usage was not modified.
*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *The applicable error for the burstable performance instance whose credit * option for CPU usage was not modified.
*/ inline void SetError(const UnsuccessfulInstanceCreditSpecificationItemError& value) { m_errorHasBeenSet = true; m_error = value; } /** *The applicable error for the burstable performance instance whose credit * option for CPU usage was not modified.
*/ inline void SetError(UnsuccessfulInstanceCreditSpecificationItemError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *The applicable error for the burstable performance instance whose credit * option for CPU usage was not modified.
*/ inline UnsuccessfulInstanceCreditSpecificationItem& WithError(const UnsuccessfulInstanceCreditSpecificationItemError& value) { SetError(value); return *this;} /** *The applicable error for the burstable performance instance whose credit * option for CPU usage was not modified.
*/ inline UnsuccessfulInstanceCreditSpecificationItem& WithError(UnsuccessfulInstanceCreditSpecificationItemError&& value) { SetError(std::move(value)); return *this;} private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; UnsuccessfulInstanceCreditSpecificationItemError m_error; bool m_errorHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws