AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CostCategoryValues.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ce/model/MatchOption.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CostExplorer
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_COSTEXPLORER_API CostCategoryValues();
44 AWS_COSTEXPLORER_API CostCategoryValues(Aws::Utils::Json::JsonView jsonValue);
46 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
51 inline const Aws::String& GetKey() const{ return m_key; }
52 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
53 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
54 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
55 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
56 inline CostCategoryValues& WithKey(const Aws::String& value) { SetKey(value); return *this;}
57 inline CostCategoryValues& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
58 inline CostCategoryValues& WithKey(const char* value) { SetKey(value); return *this;}
60
62
65 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
66 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
67 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
68 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
69 inline CostCategoryValues& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
70 inline CostCategoryValues& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
71 inline CostCategoryValues& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
72 inline CostCategoryValues& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
73 inline CostCategoryValues& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
75
77
83 inline const Aws::Vector<MatchOption>& GetMatchOptions() const{ return m_matchOptions; }
84 inline bool MatchOptionsHasBeenSet() const { return m_matchOptionsHasBeenSet; }
85 inline void SetMatchOptions(const Aws::Vector<MatchOption>& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = value; }
86 inline void SetMatchOptions(Aws::Vector<MatchOption>&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = std::move(value); }
87 inline CostCategoryValues& WithMatchOptions(const Aws::Vector<MatchOption>& value) { SetMatchOptions(value); return *this;}
88 inline CostCategoryValues& WithMatchOptions(Aws::Vector<MatchOption>&& value) { SetMatchOptions(std::move(value)); return *this;}
89 inline CostCategoryValues& AddMatchOptions(const MatchOption& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(value); return *this; }
90 inline CostCategoryValues& AddMatchOptions(MatchOption&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(std::move(value)); return *this; }
92 private:
93
94 Aws::String m_key;
95 bool m_keyHasBeenSet = false;
96
98 bool m_valuesHasBeenSet = false;
99
100 Aws::Vector<MatchOption> m_matchOptions;
101 bool m_matchOptionsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CostExplorer
106} // namespace Aws
CostCategoryValues & WithKey(Aws::String &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
CostCategoryValues & WithMatchOptions(const Aws::Vector< MatchOption > &value)
CostCategoryValues & WithValues(const Aws::Vector< Aws::String > &value)
CostCategoryValues & WithValues(Aws::Vector< Aws::String > &&value)
CostCategoryValues & AddMatchOptions(MatchOption &&value)
CostCategoryValues & AddValues(Aws::String &&value)
void SetMatchOptions(Aws::Vector< MatchOption > &&value)
CostCategoryValues & WithMatchOptions(Aws::Vector< MatchOption > &&value)
CostCategoryValues & AddValues(const char *value)
void SetValues(Aws::Vector< Aws::String > &&value)
void SetMatchOptions(const Aws::Vector< MatchOption > &value)
CostCategoryValues & AddValues(const Aws::String &value)
const Aws::Vector< Aws::String > & GetValues() const
void SetValues(const Aws::Vector< Aws::String > &value)
CostCategoryValues & WithKey(const Aws::String &value)
CostCategoryValues & WithKey(const char *value)
const Aws::Vector< MatchOption > & GetMatchOptions() const
AWS_COSTEXPLORER_API CostCategoryValues & operator=(Aws::Utils::Json::JsonView jsonValue)
CostCategoryValues & AddMatchOptions(const MatchOption &value)
AWS_COSTEXPLORER_API CostCategoryValues(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue