AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/ce/model/MatchOption.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CostExplorer {
23namespace Model {
24
33 public:
34 AWS_COSTEXPLORER_API DimensionValues() = default;
35 AWS_COSTEXPLORER_API DimensionValues(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COSTEXPLORER_API DimensionValues& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
52 inline Dimension GetKey() const { return m_key; }
53 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
54 inline void SetKey(Dimension value) {
55 m_keyHasBeenSet = true;
56 m_key = value;
57 }
59 SetKey(value);
60 return *this;
61 }
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) {
73 m_valuesHasBeenSet = true;
74 m_values = std::forward<ValuesT>(value);
75 }
76 template <typename ValuesT = Aws::Vector<Aws::String>>
77 DimensionValues& WithValues(ValuesT&& value) {
78 SetValues(std::forward<ValuesT>(value));
79 return *this;
80 }
81 template <typename ValuesT = Aws::String>
82 DimensionValues& AddValues(ValuesT&& value) {
83 m_valuesHasBeenSet = true;
84 m_values.emplace_back(std::forward<ValuesT>(value));
85 return *this;
86 }
88
90
98 inline const Aws::Vector<MatchOption>& GetMatchOptions() const { return m_matchOptions; }
99 inline bool MatchOptionsHasBeenSet() const { return m_matchOptionsHasBeenSet; }
100 template <typename MatchOptionsT = Aws::Vector<MatchOption>>
101 void SetMatchOptions(MatchOptionsT&& value) {
102 m_matchOptionsHasBeenSet = true;
103 m_matchOptions = std::forward<MatchOptionsT>(value);
104 }
105 template <typename MatchOptionsT = Aws::Vector<MatchOption>>
106 DimensionValues& WithMatchOptions(MatchOptionsT&& value) {
107 SetMatchOptions(std::forward<MatchOptionsT>(value));
108 return *this;
109 }
111 m_matchOptionsHasBeenSet = true;
112 m_matchOptions.push_back(value);
113 return *this;
114 }
116 private:
118
120
121 Aws::Vector<MatchOption> m_matchOptions;
122 bool m_keyHasBeenSet = false;
123 bool m_valuesHasBeenSet = false;
124 bool m_matchOptionsHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace CostExplorer
129} // 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