/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CostExplorer { namespace Model { /** *

The metadata that you can use to filter and group your results. You can use * GetDimensionValues to find specific values.

See * Also:

AWS * API Reference

*/ class DimensionValues { public: AWS_COSTEXPLORER_API DimensionValues(); AWS_COSTEXPLORER_API DimensionValues(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API DimensionValues& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The names of the metadata types that you can use to filter and group your * results. For example, AZ returns a list of Availability Zones.

*

Not all dimensions are supported in each API. Refer to the documentation for * each specific API to see what is supported.

* LINK_ACCOUNT_NAME and SERVICE_CODE can only be used in * CostCategoryRule.

*

ANOMALY_TOTAL_IMPACT_ABSOLUTE and * ANOMALY_TOTAL_IMPACT_PERCENTAGE can only be used in AnomalySubscriptions.

*/ inline const Dimension& GetKey() const{ return m_key; } /** *

The names of the metadata types that you can use to filter and group your * results. For example, AZ returns a list of Availability Zones.

*

Not all dimensions are supported in each API. Refer to the documentation for * each specific API to see what is supported.

* LINK_ACCOUNT_NAME and SERVICE_CODE can only be used in * CostCategoryRule.

*

ANOMALY_TOTAL_IMPACT_ABSOLUTE and * ANOMALY_TOTAL_IMPACT_PERCENTAGE can only be used in AnomalySubscriptions.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

The names of the metadata types that you can use to filter and group your * results. For example, AZ returns a list of Availability Zones.

*

Not all dimensions are supported in each API. Refer to the documentation for * each specific API to see what is supported.

* LINK_ACCOUNT_NAME and SERVICE_CODE can only be used in * CostCategoryRule.

*

ANOMALY_TOTAL_IMPACT_ABSOLUTE and * ANOMALY_TOTAL_IMPACT_PERCENTAGE can only be used in AnomalySubscriptions.

*/ inline void SetKey(const Dimension& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The names of the metadata types that you can use to filter and group your * results. For example, AZ returns a list of Availability Zones.

*

Not all dimensions are supported in each API. Refer to the documentation for * each specific API to see what is supported.

* LINK_ACCOUNT_NAME and SERVICE_CODE can only be used in * CostCategoryRule.

*

ANOMALY_TOTAL_IMPACT_ABSOLUTE and * ANOMALY_TOTAL_IMPACT_PERCENTAGE can only be used in AnomalySubscriptions.

*/ inline void SetKey(Dimension&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

The names of the metadata types that you can use to filter and group your * results. For example, AZ returns a list of Availability Zones.

*

Not all dimensions are supported in each API. Refer to the documentation for * each specific API to see what is supported.

* LINK_ACCOUNT_NAME and SERVICE_CODE can only be used in * CostCategoryRule.

*

ANOMALY_TOTAL_IMPACT_ABSOLUTE and * ANOMALY_TOTAL_IMPACT_PERCENTAGE can only be used in AnomalySubscriptions.

*/ inline DimensionValues& WithKey(const Dimension& value) { SetKey(value); return *this;} /** *

The names of the metadata types that you can use to filter and group your * results. For example, AZ returns a list of Availability Zones.

*

Not all dimensions are supported in each API. Refer to the documentation for * each specific API to see what is supported.

* LINK_ACCOUNT_NAME and SERVICE_CODE can only be used in * CostCategoryRule.

*

ANOMALY_TOTAL_IMPACT_ABSOLUTE and * ANOMALY_TOTAL_IMPACT_PERCENTAGE can only be used in AnomalySubscriptions.

*/ inline DimensionValues& WithKey(Dimension&& value) { SetKey(std::move(value)); return *this;} /** *

The metadata values that you can use to filter and group your results. You * can use GetDimensionValues to find specific values.

*/ inline const Aws::Vector& GetValues() const{ return m_values; } /** *

The metadata values that you can use to filter and group your results. You * can use GetDimensionValues to find specific values.

*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *

The metadata values that you can use to filter and group your results. You * can use GetDimensionValues to find specific values.

*/ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } /** *

The metadata values that you can use to filter and group your results. You * can use GetDimensionValues to find specific values.

*/ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } /** *

The metadata values that you can use to filter and group your results. You * can use GetDimensionValues to find specific values.

*/ inline DimensionValues& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} /** *

The metadata values that you can use to filter and group your results. You * can use GetDimensionValues to find specific values.

*/ inline DimensionValues& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} /** *

The metadata values that you can use to filter and group your results. You * can use GetDimensionValues to find specific values.

*/ inline DimensionValues& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *

The metadata values that you can use to filter and group your results. You * can use GetDimensionValues to find specific values.

*/ inline DimensionValues& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } /** *

The metadata values that you can use to filter and group your results. You * can use GetDimensionValues to find specific values.

*/ inline DimensionValues& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *

The match options that you can use to filter your results.

* MatchOptions is only applicable for actions related to Cost * Category and Anomaly Subscriptions. Refer to the documentation for each specific * API to see what is supported.

The default values for * MatchOptions are EQUALS and * CASE_SENSITIVE.

*/ inline const Aws::Vector& GetMatchOptions() const{ return m_matchOptions; } /** *

The match options that you can use to filter your results.

* MatchOptions is only applicable for actions related to Cost * Category and Anomaly Subscriptions. Refer to the documentation for each specific * API to see what is supported.

The default values for * MatchOptions are EQUALS and * CASE_SENSITIVE.

*/ inline bool MatchOptionsHasBeenSet() const { return m_matchOptionsHasBeenSet; } /** *

The match options that you can use to filter your results.

* MatchOptions is only applicable for actions related to Cost * Category and Anomaly Subscriptions. Refer to the documentation for each specific * API to see what is supported.

The default values for * MatchOptions are EQUALS and * CASE_SENSITIVE.

*/ inline void SetMatchOptions(const Aws::Vector& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = value; } /** *

The match options that you can use to filter your results.

* MatchOptions is only applicable for actions related to Cost * Category and Anomaly Subscriptions. Refer to the documentation for each specific * API to see what is supported.

The default values for * MatchOptions are EQUALS and * CASE_SENSITIVE.

*/ inline void SetMatchOptions(Aws::Vector&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = std::move(value); } /** *

The match options that you can use to filter your results.

* MatchOptions is only applicable for actions related to Cost * Category and Anomaly Subscriptions. Refer to the documentation for each specific * API to see what is supported.

The default values for * MatchOptions are EQUALS and * CASE_SENSITIVE.

*/ inline DimensionValues& WithMatchOptions(const Aws::Vector& value) { SetMatchOptions(value); return *this;} /** *

The match options that you can use to filter your results.

* MatchOptions is only applicable for actions related to Cost * Category and Anomaly Subscriptions. Refer to the documentation for each specific * API to see what is supported.

The default values for * MatchOptions are EQUALS and * CASE_SENSITIVE.

*/ inline DimensionValues& WithMatchOptions(Aws::Vector&& value) { SetMatchOptions(std::move(value)); return *this;} /** *

The match options that you can use to filter your results.

* MatchOptions is only applicable for actions related to Cost * Category and Anomaly Subscriptions. Refer to the documentation for each specific * API to see what is supported.

The default values for * MatchOptions are EQUALS and * CASE_SENSITIVE.

*/ inline DimensionValues& AddMatchOptions(const MatchOption& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(value); return *this; } /** *

The match options that you can use to filter your results.

* MatchOptions is only applicable for actions related to Cost * Category and Anomaly Subscriptions. Refer to the documentation for each specific * API to see what is supported.

The default values for * MatchOptions are EQUALS and * CASE_SENSITIVE.

*/ inline DimensionValues& AddMatchOptions(MatchOption&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(std::move(value)); return *this; } private: Dimension m_key; bool m_keyHasBeenSet = false; Aws::Vector m_values; bool m_valuesHasBeenSet = false; Aws::Vector m_matchOptions; bool m_matchOptionsHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws