AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ExpressionDimensionValues.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/model/Dimension.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/budgets/model/MatchOption.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Budgets
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_BUDGETS_API ExpressionDimensionValues() = default;
41 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline Dimension GetKey() const { return m_key; }
49 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
50 inline void SetKey(Dimension value) { m_keyHasBeenSet = true; m_key = value; }
51 inline ExpressionDimensionValues& WithKey(Dimension value) { SetKey(value); return *this;}
53
55
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 ExpressionDimensionValues& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
65 template<typename ValuesT = Aws::String>
66 ExpressionDimensionValues& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
68
70
74 inline const Aws::Vector<MatchOption>& GetMatchOptions() const { return m_matchOptions; }
75 inline bool MatchOptionsHasBeenSet() const { return m_matchOptionsHasBeenSet; }
76 template<typename MatchOptionsT = Aws::Vector<MatchOption>>
77 void SetMatchOptions(MatchOptionsT&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = std::forward<MatchOptionsT>(value); }
78 template<typename MatchOptionsT = Aws::Vector<MatchOption>>
79 ExpressionDimensionValues& WithMatchOptions(MatchOptionsT&& value) { SetMatchOptions(std::forward<MatchOptionsT>(value)); return *this;}
80 inline ExpressionDimensionValues& AddMatchOptions(MatchOption value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(value); return *this; }
82 private:
83
85 bool m_keyHasBeenSet = false;
86
88 bool m_valuesHasBeenSet = false;
89
90 Aws::Vector<MatchOption> m_matchOptions;
91 bool m_matchOptionsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Budgets
96} // namespace Aws
const Aws::Vector< MatchOption > & GetMatchOptions() const
AWS_BUDGETS_API ExpressionDimensionValues(Aws::Utils::Json::JsonView jsonValue)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
ExpressionDimensionValues & WithValues(ValuesT &&value)
ExpressionDimensionValues & WithKey(Dimension value)
AWS_BUDGETS_API ExpressionDimensionValues & operator=(Aws::Utils::Json::JsonView jsonValue)
ExpressionDimensionValues & AddMatchOptions(MatchOption value)
ExpressionDimensionValues & AddValues(ValuesT &&value)
ExpressionDimensionValues & WithMatchOptions(MatchOptionsT &&value)
const Aws::Vector< Aws::String > & GetValues() const
AWS_BUDGETS_API ExpressionDimensionValues()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue