AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CostCategoryValues.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/budgets/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 Budgets
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BUDGETS_API CostCategoryValues() = default;
40 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetKey() const { return m_key; }
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 template<typename KeyT = Aws::String>
50 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
51 template<typename KeyT = Aws::String>
52 CostCategoryValues& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
60 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
61 template<typename ValuesT = Aws::Vector<Aws::String>>
62 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
63 template<typename ValuesT = Aws::Vector<Aws::String>>
64 CostCategoryValues& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
65 template<typename ValuesT = Aws::String>
66 CostCategoryValues& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
68
70
73 inline const Aws::Vector<MatchOption>& GetMatchOptions() const { return m_matchOptions; }
74 inline bool MatchOptionsHasBeenSet() const { return m_matchOptionsHasBeenSet; }
75 template<typename MatchOptionsT = Aws::Vector<MatchOption>>
76 void SetMatchOptions(MatchOptionsT&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = std::forward<MatchOptionsT>(value); }
77 template<typename MatchOptionsT = Aws::Vector<MatchOption>>
78 CostCategoryValues& WithMatchOptions(MatchOptionsT&& value) { SetMatchOptions(std::forward<MatchOptionsT>(value)); return *this;}
79 inline CostCategoryValues& AddMatchOptions(MatchOption value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(value); return *this; }
81 private:
82
83 Aws::String m_key;
84 bool m_keyHasBeenSet = false;
85
87 bool m_valuesHasBeenSet = false;
88
89 Aws::Vector<MatchOption> m_matchOptions;
90 bool m_matchOptionsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Budgets
95} // namespace Aws
AWS_BUDGETS_API CostCategoryValues()=default
CostCategoryValues & AddValues(ValuesT &&value)
void SetMatchOptions(MatchOptionsT &&value)
CostCategoryValues & WithKey(KeyT &&value)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
CostCategoryValues & AddMatchOptions(MatchOption value)
const Aws::Vector< MatchOption > & GetMatchOptions() const
CostCategoryValues & WithValues(ValuesT &&value)
AWS_BUDGETS_API CostCategoryValues & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetValues() const
CostCategoryValues & WithMatchOptions(MatchOptionsT &&value)
AWS_BUDGETS_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