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

The Cost Categories values used for filtering the costs.

If * Values and Key are not specified, the * ABSENT MatchOption is applied to all Cost Categories. * That is, it filters on resources that aren't mapped to any Cost Categories.

*

If Values is provided and Key isn't specified, the * ABSENT MatchOption is applied to the Cost Categories * Key only. That is, it filters on resources without the given Cost * Categories key.

See Also:

AWS * API Reference

*/ class CostCategoryValues { public: AWS_COSTEXPLORER_API CostCategoryValues(); AWS_COSTEXPLORER_API CostCategoryValues(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API CostCategoryValues& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::String& GetKey() const{ return m_key; } inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } inline CostCategoryValues& WithKey(const Aws::String& value) { SetKey(value); return *this;} inline CostCategoryValues& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} inline CostCategoryValues& WithKey(const char* value) { SetKey(value); return *this;} /** *

The specific value of the Cost Category.

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

The specific value of the Cost Category.

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

The specific value of the Cost Category.

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

The specific value of the Cost Category.

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

The specific value of the Cost Category.

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

The specific value of the Cost Category.

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

The specific value of the Cost Category.

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

The specific value of the Cost Category.

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

The specific value of the Cost Category.

*/ inline CostCategoryValues& 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. The default values for * MatchOptions is 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. The default values for * MatchOptions is 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. The default values for * MatchOptions is 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. The default values for * MatchOptions is 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. The default values for * MatchOptions is EQUALS and * CASE_SENSITIVE.

*/ inline CostCategoryValues& 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. The default values for * MatchOptions is EQUALS and * CASE_SENSITIVE.

*/ inline CostCategoryValues& 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. The default values for * MatchOptions is EQUALS and * CASE_SENSITIVE.

*/ inline CostCategoryValues& 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. The default values for * MatchOptions is EQUALS and * CASE_SENSITIVE.

*/ inline CostCategoryValues& AddMatchOptions(MatchOption&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(std::move(value)); return *this; } private: Aws::String 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