AWS SDK for C++  1.9.19
AWS SDK for C++
CostCategoryValues.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace CostExplorer
24 {
25 namespace Model
26 {
27 
41  {
42  public:
47 
48 
49 
50  inline const Aws::String& GetKey() const{ return m_key; }
51 
52 
53  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
54 
55 
56  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
57 
58 
59  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
60 
61 
62  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
63 
64 
65  inline CostCategoryValues& WithKey(const Aws::String& value) { SetKey(value); return *this;}
66 
67 
68  inline CostCategoryValues& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
69 
70 
71  inline CostCategoryValues& WithKey(const char* value) { SetKey(value); return *this;}
72 
73 
77  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
78 
82  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
83 
87  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
88 
92  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
93 
97  inline CostCategoryValues& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
98 
102  inline CostCategoryValues& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
103 
107  inline CostCategoryValues& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
108 
112  inline CostCategoryValues& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
113 
117  inline CostCategoryValues& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
118 
119 
126  inline const Aws::Vector<MatchOption>& GetMatchOptions() const{ return m_matchOptions; }
127 
134  inline bool MatchOptionsHasBeenSet() const { return m_matchOptionsHasBeenSet; }
135 
142  inline void SetMatchOptions(const Aws::Vector<MatchOption>& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = value; }
143 
150  inline void SetMatchOptions(Aws::Vector<MatchOption>&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = std::move(value); }
151 
158  inline CostCategoryValues& WithMatchOptions(const Aws::Vector<MatchOption>& value) { SetMatchOptions(value); return *this;}
159 
166  inline CostCategoryValues& WithMatchOptions(Aws::Vector<MatchOption>&& value) { SetMatchOptions(std::move(value)); return *this;}
167 
174  inline CostCategoryValues& AddMatchOptions(const MatchOption& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(value); return *this; }
175 
182  inline CostCategoryValues& AddMatchOptions(MatchOption&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(std::move(value)); return *this; }
183 
184  private:
185 
186  Aws::String m_key;
187  bool m_keyHasBeenSet;
188 
189  Aws::Vector<Aws::String> m_values;
190  bool m_valuesHasBeenSet;
191 
192  Aws::Vector<MatchOption> m_matchOptions;
193  bool m_matchOptionsHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace CostExplorer
198 } // namespace Aws
Aws::CostExplorer::Model::CostCategoryValues::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: CostCategoryValues.h:53
Aws::CostExplorer::Model::CostCategoryValues::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: CostCategoryValues.h:82
Aws::CostExplorer::Model::CostCategoryValues
Definition: CostCategoryValues.h:41
Aws::CostExplorer::Model::CostCategoryValues::AddMatchOptions
CostCategoryValues & AddMatchOptions(const MatchOption &value)
Definition: CostCategoryValues.h:174
Aws::CostExplorer::Model::CostCategoryValues::GetMatchOptions
const Aws::Vector< MatchOption > & GetMatchOptions() const
Definition: CostCategoryValues.h:126
Aws::CostExplorer::Model::CostCategoryValues::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: CostCategoryValues.h:87
Aws::CostExplorer::Model::CostCategoryValues::WithKey
CostCategoryValues & WithKey(Aws::String &&value)
Definition: CostCategoryValues.h:68
Aws::CostExplorer::Model::CostCategoryValues::WithKey
CostCategoryValues & WithKey(const char *value)
Definition: CostCategoryValues.h:71
Aws::CostExplorer::Model::CostCategoryValues::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: CostCategoryValues.h:77
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::CostCategoryValues::SetMatchOptions
void SetMatchOptions(Aws::Vector< MatchOption > &&value)
Definition: CostCategoryValues.h:150
AWSVector.h
Aws::CostExplorer::Model::CostCategoryValues::AddValues
CostCategoryValues & AddValues(const Aws::String &value)
Definition: CostCategoryValues.h:107
Aws::CostExplorer::Model::CostCategoryValues::AddValues
CostCategoryValues & AddValues(Aws::String &&value)
Definition: CostCategoryValues.h:112
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::CostCategoryValues::AddMatchOptions
CostCategoryValues & AddMatchOptions(MatchOption &&value)
Definition: CostCategoryValues.h:182
Aws::CostExplorer::Model::MatchOption
MatchOption
Definition: MatchOption.h:17
Aws::CostExplorer::Model::CostCategoryValues::MatchOptionsHasBeenSet
bool MatchOptionsHasBeenSet() const
Definition: CostCategoryValues.h:134
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::CostCategoryValues::GetKey
const Aws::String & GetKey() const
Definition: CostCategoryValues.h:50
Aws::CostExplorer::Model::CostCategoryValues::WithMatchOptions
CostCategoryValues & WithMatchOptions(const Aws::Vector< MatchOption > &value)
Definition: CostCategoryValues.h:158
Aws::CostExplorer::Model::CostCategoryValues::WithValues
CostCategoryValues & WithValues(const Aws::Vector< Aws::String > &value)
Definition: CostCategoryValues.h:97
Aws::CostExplorer::Model::CostCategoryValues::CostCategoryValues
CostCategoryValues()
Aws::CostExplorer::Model::CostCategoryValues::SetMatchOptions
void SetMatchOptions(const Aws::Vector< MatchOption > &value)
Definition: CostCategoryValues.h:142
Aws::CostExplorer::Model::CostCategoryValues::CostCategoryValues
CostCategoryValues(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::CostCategoryValues::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CostExplorer::Model::CostCategoryValues::SetKey
void SetKey(const Aws::String &value)
Definition: CostCategoryValues.h:56
MatchOption.h
Aws::CostExplorer::Model::CostCategoryValues::AddValues
CostCategoryValues & AddValues(const char *value)
Definition: CostCategoryValues.h:117
Aws::CostExplorer::Model::CostCategoryValues::operator=
CostCategoryValues & 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::CostCategoryValues::WithValues
CostCategoryValues & WithValues(Aws::Vector< Aws::String > &&value)
Definition: CostCategoryValues.h:102
Aws::CostExplorer::Model::CostCategoryValues::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: CostCategoryValues.h:92
Aws::CostExplorer::Model::CostCategoryValues::WithKey
CostCategoryValues & WithKey(const Aws::String &value)
Definition: CostCategoryValues.h:65
Aws::CostExplorer::Model::CostCategoryValues::SetKey
void SetKey(Aws::String &&value)
Definition: CostCategoryValues.h:59
Aws::CostExplorer::Model::CostCategoryValues::WithMatchOptions
CostCategoryValues & WithMatchOptions(Aws::Vector< MatchOption > &&value)
Definition: CostCategoryValues.h:166
Aws::CostExplorer::Model::CostCategoryValues::SetKey
void SetKey(const char *value)
Definition: CostCategoryValues.h:62