AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DimensionValues.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/Dimension.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ce/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 CostExplorer
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_COSTEXPLORER_API DimensionValues() = default;
40 AWS_COSTEXPLORER_API DimensionValues(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COSTEXPLORER_API DimensionValues& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
58 inline Dimension GetKey() const { return m_key; }
59 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 inline void SetKey(Dimension value) { m_keyHasBeenSet = true; m_key = value; }
61 inline DimensionValues& WithKey(Dimension value) { SetKey(value); return *this;}
63
65
69 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
70 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
71 template<typename ValuesT = Aws::Vector<Aws::String>>
72 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
73 template<typename ValuesT = Aws::Vector<Aws::String>>
74 DimensionValues& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
75 template<typename ValuesT = Aws::String>
76 DimensionValues& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
78
80
88 inline const Aws::Vector<MatchOption>& GetMatchOptions() const { return m_matchOptions; }
89 inline bool MatchOptionsHasBeenSet() const { return m_matchOptionsHasBeenSet; }
90 template<typename MatchOptionsT = Aws::Vector<MatchOption>>
91 void SetMatchOptions(MatchOptionsT&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = std::forward<MatchOptionsT>(value); }
92 template<typename MatchOptionsT = Aws::Vector<MatchOption>>
93 DimensionValues& WithMatchOptions(MatchOptionsT&& value) { SetMatchOptions(std::forward<MatchOptionsT>(value)); return *this;}
94 inline DimensionValues& AddMatchOptions(MatchOption value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(value); return *this; }
96 private:
97
99 bool m_keyHasBeenSet = false;
100
102 bool m_valuesHasBeenSet = false;
103
104 Aws::Vector<MatchOption> m_matchOptions;
105 bool m_matchOptionsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace CostExplorer
110} // namespace Aws
DimensionValues & WithMatchOptions(MatchOptionsT &&value)
const Aws::Vector< MatchOption > & GetMatchOptions() const
AWS_COSTEXPLORER_API DimensionValues & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API DimensionValues()=default
DimensionValues & AddMatchOptions(MatchOption value)
void SetMatchOptions(MatchOptionsT &&value)
DimensionValues & WithValues(ValuesT &&value)
const Aws::Vector< Aws::String > & GetValues() const
DimensionValues & AddValues(ValuesT &&value)
AWS_COSTEXPLORER_API DimensionValues(Aws::Utils::Json::JsonView jsonValue)
DimensionValues & WithKey(Dimension value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue