AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CostCategoryValues.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ce/model/MatchOption.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CostExplorer
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_COSTEXPLORER_API CostCategoryValues() = default;
44 AWS_COSTEXPLORER_API CostCategoryValues(Aws::Utils::Json::JsonView jsonValue);
46 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
51 inline const Aws::String& GetKey() const { return m_key; }
52 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
53 template<typename KeyT = Aws::String>
54 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
55 template<typename KeyT = Aws::String>
56 CostCategoryValues& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
58
60
63 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
64 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
65 template<typename ValuesT = Aws::Vector<Aws::String>>
66 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
67 template<typename ValuesT = Aws::Vector<Aws::String>>
68 CostCategoryValues& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
69 template<typename ValuesT = Aws::String>
70 CostCategoryValues& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
72
74
80 inline const Aws::Vector<MatchOption>& GetMatchOptions() const { return m_matchOptions; }
81 inline bool MatchOptionsHasBeenSet() const { return m_matchOptionsHasBeenSet; }
82 template<typename MatchOptionsT = Aws::Vector<MatchOption>>
83 void SetMatchOptions(MatchOptionsT&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = std::forward<MatchOptionsT>(value); }
84 template<typename MatchOptionsT = Aws::Vector<MatchOption>>
85 CostCategoryValues& WithMatchOptions(MatchOptionsT&& value) { SetMatchOptions(std::forward<MatchOptionsT>(value)); return *this;}
86 inline CostCategoryValues& AddMatchOptions(MatchOption value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(value); return *this; }
88 private:
89
90 Aws::String m_key;
91 bool m_keyHasBeenSet = false;
92
94 bool m_valuesHasBeenSet = false;
95
96 Aws::Vector<MatchOption> m_matchOptions;
97 bool m_matchOptionsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace CostExplorer
102} // namespace Aws
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
CostCategoryValues & WithMatchOptions(MatchOptionsT &&value)
AWS_COSTEXPLORER_API CostCategoryValues()=default
CostCategoryValues & WithValues(ValuesT &&value)
CostCategoryValues & WithKey(KeyT &&value)
const Aws::Vector< Aws::String > & GetValues() const
CostCategoryValues & AddMatchOptions(MatchOption value)
CostCategoryValues & AddValues(ValuesT &&value)
const Aws::Vector< MatchOption > & GetMatchOptions() const
AWS_COSTEXPLORER_API CostCategoryValues & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API CostCategoryValues(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue