This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ce/include/aws/ce/model/SavingsPlansUtilizationDetail.h

291 lines
12 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ce/CostExplorer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/ce/model/SavingsPlansUtilization.h>
#include <aws/ce/model/SavingsPlansSavings.h>
#include <aws/ce/model/SavingsPlansAmortizedCommitment.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CostExplorer
{
namespace Model
{
/**
* <p>A single daily or monthly Savings Plans utilization rate, and details for
* your account. Master accounts in an organization have access to member accounts.
* You can use <code>GetDimensionValues</code> to determine the possible dimension
* values. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/SavingsPlansUtilizationDetail">AWS
* API Reference</a></p>
*/
class AWS_COSTEXPLORER_API SavingsPlansUtilizationDetail
{
public:
SavingsPlansUtilizationDetail();
SavingsPlansUtilizationDetail(Aws::Utils::Json::JsonView jsonValue);
SavingsPlansUtilizationDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique Amazon Resource Name (ARN) for a particular Savings Plan.</p>
*/
inline const Aws::String& GetSavingsPlanArn() const{ return m_savingsPlanArn; }
/**
* <p>The unique Amazon Resource Name (ARN) for a particular Savings Plan.</p>
*/
inline bool SavingsPlanArnHasBeenSet() const { return m_savingsPlanArnHasBeenSet; }
/**
* <p>The unique Amazon Resource Name (ARN) for a particular Savings Plan.</p>
*/
inline void SetSavingsPlanArn(const Aws::String& value) { m_savingsPlanArnHasBeenSet = true; m_savingsPlanArn = value; }
/**
* <p>The unique Amazon Resource Name (ARN) for a particular Savings Plan.</p>
*/
inline void SetSavingsPlanArn(Aws::String&& value) { m_savingsPlanArnHasBeenSet = true; m_savingsPlanArn = std::move(value); }
/**
* <p>The unique Amazon Resource Name (ARN) for a particular Savings Plan.</p>
*/
inline void SetSavingsPlanArn(const char* value) { m_savingsPlanArnHasBeenSet = true; m_savingsPlanArn.assign(value); }
/**
* <p>The unique Amazon Resource Name (ARN) for a particular Savings Plan.</p>
*/
inline SavingsPlansUtilizationDetail& WithSavingsPlanArn(const Aws::String& value) { SetSavingsPlanArn(value); return *this;}
/**
* <p>The unique Amazon Resource Name (ARN) for a particular Savings Plan.</p>
*/
inline SavingsPlansUtilizationDetail& WithSavingsPlanArn(Aws::String&& value) { SetSavingsPlanArn(std::move(value)); return *this;}
/**
* <p>The unique Amazon Resource Name (ARN) for a particular Savings Plan.</p>
*/
inline SavingsPlansUtilizationDetail& WithSavingsPlanArn(const char* value) { SetSavingsPlanArn(value); return *this;}
/**
* <p>The attribute that applies to a specific <code>Dimension</code>.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
/**
* <p>The attribute that applies to a specific <code>Dimension</code>.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>The attribute that applies to a specific <code>Dimension</code>.</p>
*/
inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>The attribute that applies to a specific <code>Dimension</code>.</p>
*/
inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>The attribute that applies to a specific <code>Dimension</code>.</p>
*/
inline SavingsPlansUtilizationDetail& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
/**
* <p>The attribute that applies to a specific <code>Dimension</code>.</p>
*/
inline SavingsPlansUtilizationDetail& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>The attribute that applies to a specific <code>Dimension</code>.</p>
*/
inline SavingsPlansUtilizationDetail& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
/**
* <p>The attribute that applies to a specific <code>Dimension</code>.</p>
*/
inline SavingsPlansUtilizationDetail& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>The attribute that applies to a specific <code>Dimension</code>.</p>
*/
inline SavingsPlansUtilizationDetail& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>The attribute that applies to a specific <code>Dimension</code>.</p>
*/
inline SavingsPlansUtilizationDetail& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The attribute that applies to a specific <code>Dimension</code>.</p>
*/
inline SavingsPlansUtilizationDetail& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>The attribute that applies to a specific <code>Dimension</code>.</p>
*/
inline SavingsPlansUtilizationDetail& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>The attribute that applies to a specific <code>Dimension</code>.</p>
*/
inline SavingsPlansUtilizationDetail& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
/**
* <p>A ratio of your effectiveness of using existing Savings Plans to apply to
* workloads that are Savings Plans eligible.</p>
*/
inline const SavingsPlansUtilization& GetUtilization() const{ return m_utilization; }
/**
* <p>A ratio of your effectiveness of using existing Savings Plans to apply to
* workloads that are Savings Plans eligible.</p>
*/
inline bool UtilizationHasBeenSet() const { return m_utilizationHasBeenSet; }
/**
* <p>A ratio of your effectiveness of using existing Savings Plans to apply to
* workloads that are Savings Plans eligible.</p>
*/
inline void SetUtilization(const SavingsPlansUtilization& value) { m_utilizationHasBeenSet = true; m_utilization = value; }
/**
* <p>A ratio of your effectiveness of using existing Savings Plans to apply to
* workloads that are Savings Plans eligible.</p>
*/
inline void SetUtilization(SavingsPlansUtilization&& value) { m_utilizationHasBeenSet = true; m_utilization = std::move(value); }
/**
* <p>A ratio of your effectiveness of using existing Savings Plans to apply to
* workloads that are Savings Plans eligible.</p>
*/
inline SavingsPlansUtilizationDetail& WithUtilization(const SavingsPlansUtilization& value) { SetUtilization(value); return *this;}
/**
* <p>A ratio of your effectiveness of using existing Savings Plans to apply to
* workloads that are Savings Plans eligible.</p>
*/
inline SavingsPlansUtilizationDetail& WithUtilization(SavingsPlansUtilization&& value) { SetUtilization(std::move(value)); return *this;}
/**
* <p>The amount saved by using existing Savings Plans. Savings returns both net
* savings from savings plans as well as the <code>onDemandCostEquivalent</code> of
* the Savings Plans when considering the utilization rate.</p>
*/
inline const SavingsPlansSavings& GetSavings() const{ return m_savings; }
/**
* <p>The amount saved by using existing Savings Plans. Savings returns both net
* savings from savings plans as well as the <code>onDemandCostEquivalent</code> of
* the Savings Plans when considering the utilization rate.</p>
*/
inline bool SavingsHasBeenSet() const { return m_savingsHasBeenSet; }
/**
* <p>The amount saved by using existing Savings Plans. Savings returns both net
* savings from savings plans as well as the <code>onDemandCostEquivalent</code> of
* the Savings Plans when considering the utilization rate.</p>
*/
inline void SetSavings(const SavingsPlansSavings& value) { m_savingsHasBeenSet = true; m_savings = value; }
/**
* <p>The amount saved by using existing Savings Plans. Savings returns both net
* savings from savings plans as well as the <code>onDemandCostEquivalent</code> of
* the Savings Plans when considering the utilization rate.</p>
*/
inline void SetSavings(SavingsPlansSavings&& value) { m_savingsHasBeenSet = true; m_savings = std::move(value); }
/**
* <p>The amount saved by using existing Savings Plans. Savings returns both net
* savings from savings plans as well as the <code>onDemandCostEquivalent</code> of
* the Savings Plans when considering the utilization rate.</p>
*/
inline SavingsPlansUtilizationDetail& WithSavings(const SavingsPlansSavings& value) { SetSavings(value); return *this;}
/**
* <p>The amount saved by using existing Savings Plans. Savings returns both net
* savings from savings plans as well as the <code>onDemandCostEquivalent</code> of
* the Savings Plans when considering the utilization rate.</p>
*/
inline SavingsPlansUtilizationDetail& WithSavings(SavingsPlansSavings&& value) { SetSavings(std::move(value)); return *this;}
/**
* <p>The total amortized commitment for a Savings Plans. Includes the sum of the
* upfront and recurring Savings Plans fees.</p>
*/
inline const SavingsPlansAmortizedCommitment& GetAmortizedCommitment() const{ return m_amortizedCommitment; }
/**
* <p>The total amortized commitment for a Savings Plans. Includes the sum of the
* upfront and recurring Savings Plans fees.</p>
*/
inline bool AmortizedCommitmentHasBeenSet() const { return m_amortizedCommitmentHasBeenSet; }
/**
* <p>The total amortized commitment for a Savings Plans. Includes the sum of the
* upfront and recurring Savings Plans fees.</p>
*/
inline void SetAmortizedCommitment(const SavingsPlansAmortizedCommitment& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = value; }
/**
* <p>The total amortized commitment for a Savings Plans. Includes the sum of the
* upfront and recurring Savings Plans fees.</p>
*/
inline void SetAmortizedCommitment(SavingsPlansAmortizedCommitment&& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = std::move(value); }
/**
* <p>The total amortized commitment for a Savings Plans. Includes the sum of the
* upfront and recurring Savings Plans fees.</p>
*/
inline SavingsPlansUtilizationDetail& WithAmortizedCommitment(const SavingsPlansAmortizedCommitment& value) { SetAmortizedCommitment(value); return *this;}
/**
* <p>The total amortized commitment for a Savings Plans. Includes the sum of the
* upfront and recurring Savings Plans fees.</p>
*/
inline SavingsPlansUtilizationDetail& WithAmortizedCommitment(SavingsPlansAmortizedCommitment&& value) { SetAmortizedCommitment(std::move(value)); return *this;}
private:
Aws::String m_savingsPlanArn;
bool m_savingsPlanArnHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_attributes;
bool m_attributesHasBeenSet;
SavingsPlansUtilization m_utilization;
bool m_utilizationHasBeenSet;
SavingsPlansSavings m_savings;
bool m_savingsHasBeenSet;
SavingsPlansAmortizedCommitment m_amortizedCommitment;
bool m_amortizedCommitmentHasBeenSet;
};
} // namespace Model
} // namespace CostExplorer
} // namespace Aws