AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ce/model/MatchOption.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CostExplorer
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_COSTEXPLORER_API DimensionValues();
40 AWS_COSTEXPLORER_API DimensionValues(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COSTEXPLORER_API DimensionValues& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
58 inline const Dimension& GetKey() const{ return m_key; }
59 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 inline void SetKey(const Dimension& value) { m_keyHasBeenSet = true; m_key = value; }
61 inline void SetKey(Dimension&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
62 inline DimensionValues& WithKey(const Dimension& value) { SetKey(value); return *this;}
63 inline DimensionValues& WithKey(Dimension&& value) { SetKey(std::move(value)); return *this;}
65
67
71 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
72 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
73 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
74 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
75 inline DimensionValues& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
76 inline DimensionValues& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
77 inline DimensionValues& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
78 inline DimensionValues& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
79 inline DimensionValues& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
81
83
91 inline const Aws::Vector<MatchOption>& GetMatchOptions() const{ return m_matchOptions; }
92 inline bool MatchOptionsHasBeenSet() const { return m_matchOptionsHasBeenSet; }
93 inline void SetMatchOptions(const Aws::Vector<MatchOption>& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = value; }
94 inline void SetMatchOptions(Aws::Vector<MatchOption>&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = std::move(value); }
95 inline DimensionValues& WithMatchOptions(const Aws::Vector<MatchOption>& value) { SetMatchOptions(value); return *this;}
96 inline DimensionValues& WithMatchOptions(Aws::Vector<MatchOption>&& value) { SetMatchOptions(std::move(value)); return *this;}
97 inline DimensionValues& AddMatchOptions(const MatchOption& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(value); return *this; }
98 inline DimensionValues& AddMatchOptions(MatchOption&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(std::move(value)); return *this; }
100 private:
101
102 Dimension m_key;
103 bool m_keyHasBeenSet = false;
104
106 bool m_valuesHasBeenSet = false;
107
108 Aws::Vector<MatchOption> m_matchOptions;
109 bool m_matchOptionsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace CostExplorer
114} // namespace Aws
void SetMatchOptions(const Aws::Vector< MatchOption > &value)
void SetValues(Aws::Vector< Aws::String > &&value)
const Aws::Vector< MatchOption > & GetMatchOptions() const
AWS_COSTEXPLORER_API DimensionValues & operator=(Aws::Utils::Json::JsonView jsonValue)
DimensionValues & WithKey(const Dimension &value)
DimensionValues & WithValues(const Aws::Vector< Aws::String > &value)
DimensionValues & AddValues(Aws::String &&value)
DimensionValues & AddValues(const char *value)
DimensionValues & AddMatchOptions(MatchOption &&value)
DimensionValues & WithMatchOptions(Aws::Vector< MatchOption > &&value)
DimensionValues & AddValues(const Aws::String &value)
DimensionValues & AddMatchOptions(const MatchOption &value)
void SetMatchOptions(Aws::Vector< MatchOption > &&value)
void SetKey(const Dimension &value)
void SetValues(const Aws::Vector< Aws::String > &value)
DimensionValues & WithKey(Dimension &&value)
const Aws::Vector< Aws::String > & GetValues() const
DimensionValues & WithMatchOptions(const Aws::Vector< MatchOption > &value)
AWS_COSTEXPLORER_API DimensionValues(Aws::Utils::Json::JsonView jsonValue)
DimensionValues & WithValues(Aws::Vector< Aws::String > &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue