/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Context about the current instance.See Also:
AWS
* API Reference
Resource ID of the current instance.
*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *Resource ID of the current instance.
*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *Resource ID of the current instance.
*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *Resource ID of the current instance.
*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *Resource ID of the current instance.
*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *Resource ID of the current instance.
*/ inline CurrentInstance& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *Resource ID of the current instance.
*/ inline CurrentInstance& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *Resource ID of the current instance.
*/ inline CurrentInstance& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *The name that you given an instance. This field shows as blank if you haven't * given the instance a name.
*/ inline const Aws::String& GetInstanceName() const{ return m_instanceName; } /** *The name that you given an instance. This field shows as blank if you haven't * given the instance a name.
*/ inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; } /** *The name that you given an instance. This field shows as blank if you haven't * given the instance a name.
*/ inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; } /** *The name that you given an instance. This field shows as blank if you haven't * given the instance a name.
*/ inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); } /** *The name that you given an instance. This field shows as blank if you haven't * given the instance a name.
*/ inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); } /** *The name that you given an instance. This field shows as blank if you haven't * given the instance a name.
*/ inline CurrentInstance& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;} /** *The name that you given an instance. This field shows as blank if you haven't * given the instance a name.
*/ inline CurrentInstance& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;} /** *The name that you given an instance. This field shows as blank if you haven't * given the instance a name.
*/ inline CurrentInstance& WithInstanceName(const char* value) { SetInstanceName(value); return *this;} /** *Cost allocation resource tags that are applied to the instance.
*/ inline const Aws::VectorCost allocation resource tags that are applied to the instance.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *Cost allocation resource tags that are applied to the instance.
*/ inline void SetTags(const Aws::VectorCost allocation resource tags that are applied to the instance.
*/ inline void SetTags(Aws::VectorCost allocation resource tags that are applied to the instance.
*/ inline CurrentInstance& WithTags(const Aws::VectorCost allocation resource tags that are applied to the instance.
*/ inline CurrentInstance& WithTags(Aws::VectorCost allocation resource tags that are applied to the instance.
*/ inline CurrentInstance& AddTags(const TagValues& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *Cost allocation resource tags that are applied to the instance.
*/ inline CurrentInstance& AddTags(TagValues&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *Details about the resource and utilization.
*/ inline const ResourceDetails& GetResourceDetails() const{ return m_resourceDetails; } /** *Details about the resource and utilization.
*/ inline bool ResourceDetailsHasBeenSet() const { return m_resourceDetailsHasBeenSet; } /** *Details about the resource and utilization.
*/ inline void SetResourceDetails(const ResourceDetails& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = value; } /** *Details about the resource and utilization.
*/ inline void SetResourceDetails(ResourceDetails&& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = std::move(value); } /** *Details about the resource and utilization.
*/ inline CurrentInstance& WithResourceDetails(const ResourceDetails& value) { SetResourceDetails(value); return *this;} /** *Details about the resource and utilization.
*/ inline CurrentInstance& WithResourceDetails(ResourceDetails&& value) { SetResourceDetails(std::move(value)); return *this;} /** *Utilization information of the current instance during the lookback * period.
*/ inline const ResourceUtilization& GetResourceUtilization() const{ return m_resourceUtilization; } /** *Utilization information of the current instance during the lookback * period.
*/ inline bool ResourceUtilizationHasBeenSet() const { return m_resourceUtilizationHasBeenSet; } /** *Utilization information of the current instance during the lookback * period.
*/ inline void SetResourceUtilization(const ResourceUtilization& value) { m_resourceUtilizationHasBeenSet = true; m_resourceUtilization = value; } /** *Utilization information of the current instance during the lookback * period.
*/ inline void SetResourceUtilization(ResourceUtilization&& value) { m_resourceUtilizationHasBeenSet = true; m_resourceUtilization = std::move(value); } /** *Utilization information of the current instance during the lookback * period.
*/ inline CurrentInstance& WithResourceUtilization(const ResourceUtilization& value) { SetResourceUtilization(value); return *this;} /** *Utilization information of the current instance during the lookback * period.
*/ inline CurrentInstance& WithResourceUtilization(ResourceUtilization&& value) { SetResourceUtilization(std::move(value)); return *this;} /** *The number of hours during the lookback period that's covered by * reservations.
*/ inline const Aws::String& GetReservationCoveredHoursInLookbackPeriod() const{ return m_reservationCoveredHoursInLookbackPeriod; } /** *The number of hours during the lookback period that's covered by * reservations.
*/ inline bool ReservationCoveredHoursInLookbackPeriodHasBeenSet() const { return m_reservationCoveredHoursInLookbackPeriodHasBeenSet; } /** *The number of hours during the lookback period that's covered by * reservations.
*/ inline void SetReservationCoveredHoursInLookbackPeriod(const Aws::String& value) { m_reservationCoveredHoursInLookbackPeriodHasBeenSet = true; m_reservationCoveredHoursInLookbackPeriod = value; } /** *The number of hours during the lookback period that's covered by * reservations.
*/ inline void SetReservationCoveredHoursInLookbackPeriod(Aws::String&& value) { m_reservationCoveredHoursInLookbackPeriodHasBeenSet = true; m_reservationCoveredHoursInLookbackPeriod = std::move(value); } /** *The number of hours during the lookback period that's covered by * reservations.
*/ inline void SetReservationCoveredHoursInLookbackPeriod(const char* value) { m_reservationCoveredHoursInLookbackPeriodHasBeenSet = true; m_reservationCoveredHoursInLookbackPeriod.assign(value); } /** *The number of hours during the lookback period that's covered by * reservations.
*/ inline CurrentInstance& WithReservationCoveredHoursInLookbackPeriod(const Aws::String& value) { SetReservationCoveredHoursInLookbackPeriod(value); return *this;} /** *The number of hours during the lookback period that's covered by * reservations.
*/ inline CurrentInstance& WithReservationCoveredHoursInLookbackPeriod(Aws::String&& value) { SetReservationCoveredHoursInLookbackPeriod(std::move(value)); return *this;} /** *The number of hours during the lookback period that's covered by * reservations.
*/ inline CurrentInstance& WithReservationCoveredHoursInLookbackPeriod(const char* value) { SetReservationCoveredHoursInLookbackPeriod(value); return *this;} /** *The number of hours during the lookback period that's covered by Savings * Plans.
*/ inline const Aws::String& GetSavingsPlansCoveredHoursInLookbackPeriod() const{ return m_savingsPlansCoveredHoursInLookbackPeriod; } /** *The number of hours during the lookback period that's covered by Savings * Plans.
*/ inline bool SavingsPlansCoveredHoursInLookbackPeriodHasBeenSet() const { return m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet; } /** *The number of hours during the lookback period that's covered by Savings * Plans.
*/ inline void SetSavingsPlansCoveredHoursInLookbackPeriod(const Aws::String& value) { m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet = true; m_savingsPlansCoveredHoursInLookbackPeriod = value; } /** *The number of hours during the lookback period that's covered by Savings * Plans.
*/ inline void SetSavingsPlansCoveredHoursInLookbackPeriod(Aws::String&& value) { m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet = true; m_savingsPlansCoveredHoursInLookbackPeriod = std::move(value); } /** *The number of hours during the lookback period that's covered by Savings * Plans.
*/ inline void SetSavingsPlansCoveredHoursInLookbackPeriod(const char* value) { m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet = true; m_savingsPlansCoveredHoursInLookbackPeriod.assign(value); } /** *The number of hours during the lookback period that's covered by Savings * Plans.
*/ inline CurrentInstance& WithSavingsPlansCoveredHoursInLookbackPeriod(const Aws::String& value) { SetSavingsPlansCoveredHoursInLookbackPeriod(value); return *this;} /** *The number of hours during the lookback period that's covered by Savings * Plans.
*/ inline CurrentInstance& WithSavingsPlansCoveredHoursInLookbackPeriod(Aws::String&& value) { SetSavingsPlansCoveredHoursInLookbackPeriod(std::move(value)); return *this;} /** *The number of hours during the lookback period that's covered by Savings * Plans.
*/ inline CurrentInstance& WithSavingsPlansCoveredHoursInLookbackPeriod(const char* value) { SetSavingsPlansCoveredHoursInLookbackPeriod(value); return *this;} /** *The number of hours during the lookback period that's billed at On-Demand * rates.
*/ inline const Aws::String& GetOnDemandHoursInLookbackPeriod() const{ return m_onDemandHoursInLookbackPeriod; } /** *The number of hours during the lookback period that's billed at On-Demand * rates.
*/ inline bool OnDemandHoursInLookbackPeriodHasBeenSet() const { return m_onDemandHoursInLookbackPeriodHasBeenSet; } /** *The number of hours during the lookback period that's billed at On-Demand * rates.
*/ inline void SetOnDemandHoursInLookbackPeriod(const Aws::String& value) { m_onDemandHoursInLookbackPeriodHasBeenSet = true; m_onDemandHoursInLookbackPeriod = value; } /** *The number of hours during the lookback period that's billed at On-Demand * rates.
*/ inline void SetOnDemandHoursInLookbackPeriod(Aws::String&& value) { m_onDemandHoursInLookbackPeriodHasBeenSet = true; m_onDemandHoursInLookbackPeriod = std::move(value); } /** *The number of hours during the lookback period that's billed at On-Demand * rates.
*/ inline void SetOnDemandHoursInLookbackPeriod(const char* value) { m_onDemandHoursInLookbackPeriodHasBeenSet = true; m_onDemandHoursInLookbackPeriod.assign(value); } /** *The number of hours during the lookback period that's billed at On-Demand * rates.
*/ inline CurrentInstance& WithOnDemandHoursInLookbackPeriod(const Aws::String& value) { SetOnDemandHoursInLookbackPeriod(value); return *this;} /** *The number of hours during the lookback period that's billed at On-Demand * rates.
*/ inline CurrentInstance& WithOnDemandHoursInLookbackPeriod(Aws::String&& value) { SetOnDemandHoursInLookbackPeriod(std::move(value)); return *this;} /** *The number of hours during the lookback period that's billed at On-Demand * rates.
*/ inline CurrentInstance& WithOnDemandHoursInLookbackPeriod(const char* value) { SetOnDemandHoursInLookbackPeriod(value); return *this;} /** *The total number of hours that the instance ran during the lookback * period.
*/ inline const Aws::String& GetTotalRunningHoursInLookbackPeriod() const{ return m_totalRunningHoursInLookbackPeriod; } /** *The total number of hours that the instance ran during the lookback * period.
*/ inline bool TotalRunningHoursInLookbackPeriodHasBeenSet() const { return m_totalRunningHoursInLookbackPeriodHasBeenSet; } /** *The total number of hours that the instance ran during the lookback * period.
*/ inline void SetTotalRunningHoursInLookbackPeriod(const Aws::String& value) { m_totalRunningHoursInLookbackPeriodHasBeenSet = true; m_totalRunningHoursInLookbackPeriod = value; } /** *The total number of hours that the instance ran during the lookback * period.
*/ inline void SetTotalRunningHoursInLookbackPeriod(Aws::String&& value) { m_totalRunningHoursInLookbackPeriodHasBeenSet = true; m_totalRunningHoursInLookbackPeriod = std::move(value); } /** *The total number of hours that the instance ran during the lookback * period.
*/ inline void SetTotalRunningHoursInLookbackPeriod(const char* value) { m_totalRunningHoursInLookbackPeriodHasBeenSet = true; m_totalRunningHoursInLookbackPeriod.assign(value); } /** *The total number of hours that the instance ran during the lookback * period.
*/ inline CurrentInstance& WithTotalRunningHoursInLookbackPeriod(const Aws::String& value) { SetTotalRunningHoursInLookbackPeriod(value); return *this;} /** *The total number of hours that the instance ran during the lookback * period.
*/ inline CurrentInstance& WithTotalRunningHoursInLookbackPeriod(Aws::String&& value) { SetTotalRunningHoursInLookbackPeriod(std::move(value)); return *this;} /** *The total number of hours that the instance ran during the lookback * period.
*/ inline CurrentInstance& WithTotalRunningHoursInLookbackPeriod(const char* value) { SetTotalRunningHoursInLookbackPeriod(value); return *this;} /** *The current On-Demand cost of operating this instance on a monthly basis.
*/ inline const Aws::String& GetMonthlyCost() const{ return m_monthlyCost; } /** *The current On-Demand cost of operating this instance on a monthly basis.
*/ inline bool MonthlyCostHasBeenSet() const { return m_monthlyCostHasBeenSet; } /** *The current On-Demand cost of operating this instance on a monthly basis.
*/ inline void SetMonthlyCost(const Aws::String& value) { m_monthlyCostHasBeenSet = true; m_monthlyCost = value; } /** *The current On-Demand cost of operating this instance on a monthly basis.
*/ inline void SetMonthlyCost(Aws::String&& value) { m_monthlyCostHasBeenSet = true; m_monthlyCost = std::move(value); } /** *The current On-Demand cost of operating this instance on a monthly basis.
*/ inline void SetMonthlyCost(const char* value) { m_monthlyCostHasBeenSet = true; m_monthlyCost.assign(value); } /** *The current On-Demand cost of operating this instance on a monthly basis.
*/ inline CurrentInstance& WithMonthlyCost(const Aws::String& value) { SetMonthlyCost(value); return *this;} /** *The current On-Demand cost of operating this instance on a monthly basis.
*/ inline CurrentInstance& WithMonthlyCost(Aws::String&& value) { SetMonthlyCost(std::move(value)); return *this;} /** *The current On-Demand cost of operating this instance on a monthly basis.
*/ inline CurrentInstance& WithMonthlyCost(const char* value) { SetMonthlyCost(value); return *this;} /** *The currency code that Amazon Web Services used to calculate the costs for * this instance.
*/ inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; } /** *The currency code that Amazon Web Services used to calculate the costs for * this instance.
*/ inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; } /** *The currency code that Amazon Web Services used to calculate the costs for * this instance.
*/ inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; } /** *The currency code that Amazon Web Services used to calculate the costs for * this instance.
*/ inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); } /** *The currency code that Amazon Web Services used to calculate the costs for * this instance.
*/ inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); } /** *The currency code that Amazon Web Services used to calculate the costs for * this instance.
*/ inline CurrentInstance& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;} /** *The currency code that Amazon Web Services used to calculate the costs for * this instance.
*/ inline CurrentInstance& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;} /** *The currency code that Amazon Web Services used to calculate the costs for * this instance.
*/ inline CurrentInstance& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;} private: Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::String m_instanceName; bool m_instanceNameHasBeenSet = false; Aws::Vector