AWS SDK for C++  1.9.19
AWS SDK for C++
DimensionValues.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace CostExplorer
25 {
26 namespace Model
27 {
28 
37  {
38  public:
43 
44 
49  inline const Dimension& GetKey() const{ return m_key; }
50 
55  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
56 
61  inline void SetKey(const Dimension& value) { m_keyHasBeenSet = true; m_key = value; }
62 
67  inline void SetKey(Dimension&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
68 
73  inline DimensionValues& WithKey(const Dimension& value) { SetKey(value); return *this;}
74 
79  inline DimensionValues& WithKey(Dimension&& value) { SetKey(std::move(value)); return *this;}
80 
81 
86  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
87 
92  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
93 
98  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
99 
104  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
105 
110  inline DimensionValues& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
111 
116  inline DimensionValues& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
117 
122  inline DimensionValues& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
123 
128  inline DimensionValues& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
129 
134  inline DimensionValues& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
135 
136 
143  inline const Aws::Vector<MatchOption>& GetMatchOptions() const{ return m_matchOptions; }
144 
151  inline bool MatchOptionsHasBeenSet() const { return m_matchOptionsHasBeenSet; }
152 
159  inline void SetMatchOptions(const Aws::Vector<MatchOption>& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = value; }
160 
167  inline void SetMatchOptions(Aws::Vector<MatchOption>&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = std::move(value); }
168 
175  inline DimensionValues& WithMatchOptions(const Aws::Vector<MatchOption>& value) { SetMatchOptions(value); return *this;}
176 
183  inline DimensionValues& WithMatchOptions(Aws::Vector<MatchOption>&& value) { SetMatchOptions(std::move(value)); return *this;}
184 
191  inline DimensionValues& AddMatchOptions(const MatchOption& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(value); return *this; }
192 
199  inline DimensionValues& AddMatchOptions(MatchOption&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(std::move(value)); return *this; }
200 
201  private:
202 
203  Dimension m_key;
204  bool m_keyHasBeenSet;
205 
206  Aws::Vector<Aws::String> m_values;
207  bool m_valuesHasBeenSet;
208 
209  Aws::Vector<MatchOption> m_matchOptions;
210  bool m_matchOptionsHasBeenSet;
211  };
212 
213 } // namespace Model
214 } // namespace CostExplorer
215 } // namespace Aws
Aws::CostExplorer::Model::DimensionValues::SetKey
void SetKey(Dimension &&value)
Definition: DimensionValues.h:67
Aws::CostExplorer::Model::DimensionValues::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: DimensionValues.h:104
Aws::CostExplorer::Model::DimensionValues::SetKey
void SetKey(const Dimension &value)
Definition: DimensionValues.h:61
Aws::CostExplorer::Model::Dimension
Dimension
Definition: Dimension.h:17
Aws::CostExplorer::Model::DimensionValues::WithValues
DimensionValues & WithValues(Aws::Vector< Aws::String > &&value)
Definition: DimensionValues.h:116
Aws::CostExplorer::Model::DimensionValues::SetMatchOptions
void SetMatchOptions(Aws::Vector< MatchOption > &&value)
Definition: DimensionValues.h:167
Aws::CostExplorer::Model::DimensionValues::AddValues
DimensionValues & AddValues(Aws::String &&value)
Definition: DimensionValues.h:128
Aws::CostExplorer::Model::DimensionValues::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CostExplorer::Model::DimensionValues::AddValues
DimensionValues & AddValues(const char *value)
Definition: DimensionValues.h:134
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::DimensionValues::WithMatchOptions
DimensionValues & WithMatchOptions(Aws::Vector< MatchOption > &&value)
Definition: DimensionValues.h:183
Aws::CostExplorer::Model::DimensionValues
Definition: DimensionValues.h:37
AWSVector.h
Aws::CostExplorer::Model::DimensionValues::GetMatchOptions
const Aws::Vector< MatchOption > & GetMatchOptions() const
Definition: DimensionValues.h:143
Aws::CostExplorer::Model::DimensionValues::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: DimensionValues.h:92
Aws::CostExplorer::Model::DimensionValues::WithKey
DimensionValues & WithKey(const Dimension &value)
Definition: DimensionValues.h:73
Aws::CostExplorer::Model::DimensionValues::WithValues
DimensionValues & WithValues(const Aws::Vector< Aws::String > &value)
Definition: DimensionValues.h:110
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::DimensionValues::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: DimensionValues.h:86
Dimension.h
Aws::CostExplorer::Model::DimensionValues::DimensionValues
DimensionValues()
Aws::CostExplorer::Model::DimensionValues::MatchOptionsHasBeenSet
bool MatchOptionsHasBeenSet() const
Definition: DimensionValues.h:151
Aws::CostExplorer::Model::MatchOption
MatchOption
Definition: MatchOption.h:17
Aws::CostExplorer::Model::DimensionValues::DimensionValues
DimensionValues(Aws::Utils::Json::JsonView jsonValue)
Aws::CostExplorer::Model::DimensionValues::WithKey
DimensionValues & WithKey(Dimension &&value)
Definition: DimensionValues.h:79
Aws::CostExplorer::Model::DimensionValues::AddMatchOptions
DimensionValues & AddMatchOptions(MatchOption &&value)
Definition: DimensionValues.h:199
Aws::CostExplorer::Model::DimensionValues::AddMatchOptions
DimensionValues & AddMatchOptions(const MatchOption &value)
Definition: DimensionValues.h:191
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::DimensionValues::SetMatchOptions
void SetMatchOptions(const Aws::Vector< MatchOption > &value)
Definition: DimensionValues.h:159
Aws::CostExplorer::Model::DimensionValues::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: DimensionValues.h:98
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::DimensionValues::GetKey
const Dimension & GetKey() const
Definition: DimensionValues.h:49
MatchOption.h
Aws::CostExplorer::Model::DimensionValues::operator=
DimensionValues & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::DimensionValues::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: DimensionValues.h:55
Aws::CostExplorer::Model::DimensionValues::WithMatchOptions
DimensionValues & WithMatchOptions(const Aws::Vector< MatchOption > &value)
Definition: DimensionValues.h:175
Aws::CostExplorer::Model::DimensionValues::AddValues
DimensionValues & AddValues(const Aws::String &value)
Definition: DimensionValues.h:122