AWS SDK for C++  1.8.126
AWS SDK for C++
TagValues.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 
40  {
41  public:
46 
47 
51  inline const Aws::String& GetKey() const{ return m_key; }
52 
56  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
57 
61  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
62 
66  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
67 
71  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
72 
76  inline TagValues& WithKey(const Aws::String& value) { SetKey(value); return *this;}
77 
81  inline TagValues& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
82 
86  inline TagValues& WithKey(const char* value) { SetKey(value); return *this;}
87 
88 
92  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
93 
97  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
98 
102  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
103 
107  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
108 
112  inline TagValues& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
113 
117  inline TagValues& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
118 
122  inline TagValues& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
123 
127  inline TagValues& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
128 
132  inline TagValues& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
133 
134 
141  inline const Aws::Vector<MatchOption>& GetMatchOptions() const{ return m_matchOptions; }
142 
149  inline bool MatchOptionsHasBeenSet() const { return m_matchOptionsHasBeenSet; }
150 
157  inline void SetMatchOptions(const Aws::Vector<MatchOption>& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = value; }
158 
165  inline void SetMatchOptions(Aws::Vector<MatchOption>&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = std::move(value); }
166 
173  inline TagValues& WithMatchOptions(const Aws::Vector<MatchOption>& value) { SetMatchOptions(value); return *this;}
174 
181  inline TagValues& WithMatchOptions(Aws::Vector<MatchOption>&& value) { SetMatchOptions(std::move(value)); return *this;}
182 
189  inline TagValues& AddMatchOptions(const MatchOption& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(value); return *this; }
190 
197  inline TagValues& AddMatchOptions(MatchOption&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(std::move(value)); return *this; }
198 
199  private:
200 
201  Aws::String m_key;
202  bool m_keyHasBeenSet;
203 
204  Aws::Vector<Aws::String> m_values;
205  bool m_valuesHasBeenSet;
206 
207  Aws::Vector<MatchOption> m_matchOptions;
208  bool m_matchOptionsHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace CostExplorer
213 } // namespace Aws
Aws::CostExplorer::Model::TagValues::AddValues
TagValues & AddValues(const Aws::String &value)
Definition: TagValues.h:122
Aws::CostExplorer::Model::TagValues::AddMatchOptions
TagValues & AddMatchOptions(MatchOption &&value)
Definition: TagValues.h:197
Aws::CostExplorer::Model::TagValues::SetMatchOptions
void SetMatchOptions(const Aws::Vector< MatchOption > &value)
Definition: TagValues.h:157
Aws::CostExplorer::Model::TagValues::GetMatchOptions
const Aws::Vector< MatchOption > & GetMatchOptions() const
Definition: TagValues.h:141
Aws::CostExplorer::Model::TagValues::WithKey
TagValues & WithKey(Aws::String &&value)
Definition: TagValues.h:81
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CostExplorer::Model::TagValues::MatchOptionsHasBeenSet
bool MatchOptionsHasBeenSet() const
Definition: TagValues.h:149
Aws::CostExplorer::Model::TagValues::AddValues
TagValues & AddValues(const char *value)
Definition: TagValues.h:132
Aws::CostExplorer::Model::TagValues::TagValues
TagValues()
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::TagValues::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: TagValues.h:97
Aws::CostExplorer::Model::TagValues::WithValues
TagValues & WithValues(const Aws::Vector< Aws::String > &value)
Definition: TagValues.h:112
Aws::CostExplorer::Model::MatchOption
MatchOption
Definition: MatchOption.h:17
Aws::CostExplorer::Model::TagValues::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: TagValues.h:102
Aws::CostExplorer::Model::TagValues::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: TagValues.h:107
Aws::CostExplorer::Model::TagValues::operator=
TagValues & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CostExplorer::Model::TagValues::SetKey
void SetKey(const Aws::String &value)
Definition: TagValues.h:61
Aws::CostExplorer::Model::TagValues::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: TagValues.h:56
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::TagValues::TagValues
TagValues(Aws::Utils::Json::JsonView jsonValue)
Aws::CostExplorer::Model::TagValues::AddValues
TagValues & AddValues(Aws::String &&value)
Definition: TagValues.h:127
Aws::CostExplorer::Model::TagValues::WithKey
TagValues & WithKey(const char *value)
Definition: TagValues.h:86
Aws::CostExplorer::Model::TagValues::SetKey
void SetKey(Aws::String &&value)
Definition: TagValues.h:66
Aws::CostExplorer::Model::TagValues::WithMatchOptions
TagValues & WithMatchOptions(const Aws::Vector< MatchOption > &value)
Definition: TagValues.h:173
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::TagValues::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: TagValues.h:92
MatchOption.h
Aws::CostExplorer::Model::TagValues::SetKey
void SetKey(const char *value)
Definition: TagValues.h:71
Aws::CostExplorer::Model::TagValues::SetMatchOptions
void SetMatchOptions(Aws::Vector< MatchOption > &&value)
Definition: TagValues.h:165
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::TagValues::GetKey
const Aws::String & GetKey() const
Definition: TagValues.h:51
Aws::CostExplorer::Model::TagValues::WithValues
TagValues & WithValues(Aws::Vector< Aws::String > &&value)
Definition: TagValues.h:117
Aws::CostExplorer::Model::TagValues::WithKey
TagValues & WithKey(const Aws::String &value)
Definition: TagValues.h:76
Aws::CostExplorer::Model::TagValues::AddMatchOptions
TagValues & AddMatchOptions(const MatchOption &value)
Definition: TagValues.h:189
Aws::CostExplorer::Model::TagValues
Definition: TagValues.h:40
Aws::CostExplorer::Model::TagValues::WithMatchOptions
TagValues & WithMatchOptions(Aws::Vector< MatchOption > &&value)
Definition: TagValues.h:181
Aws::CostExplorer::Model::TagValues::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const