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/freetier/FreeTier_EXPORTS.h>
8#include <aws/freetier/model/Dimension.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/freetier/model/MatchOption.h>
11#include <aws/core/utils/memory/stl/AWSString.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 FreeTier
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_FREETIER_API DimensionValues();
39 AWS_FREETIER_API DimensionValues(Aws::Utils::Json::JsonView jsonValue);
41 AWS_FREETIER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Dimension& GetKey() const{ return m_key; }
49 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
50 inline void SetKey(const Dimension& value) { m_keyHasBeenSet = true; m_key = value; }
51 inline void SetKey(Dimension&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
52 inline DimensionValues& WithKey(const Dimension& value) { SetKey(value); return *this;}
53 inline DimensionValues& WithKey(Dimension&& value) { SetKey(std::move(value)); return *this;}
55
57
61 inline const Aws::Vector<MatchOption>& GetMatchOptions() const{ return m_matchOptions; }
62 inline bool MatchOptionsHasBeenSet() const { return m_matchOptionsHasBeenSet; }
63 inline void SetMatchOptions(const Aws::Vector<MatchOption>& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = value; }
64 inline void SetMatchOptions(Aws::Vector<MatchOption>&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions = std::move(value); }
65 inline DimensionValues& WithMatchOptions(const Aws::Vector<MatchOption>& value) { SetMatchOptions(value); return *this;}
66 inline DimensionValues& WithMatchOptions(Aws::Vector<MatchOption>&& value) { SetMatchOptions(std::move(value)); return *this;}
67 inline DimensionValues& AddMatchOptions(const MatchOption& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(value); return *this; }
68 inline DimensionValues& AddMatchOptions(MatchOption&& value) { m_matchOptionsHasBeenSet = true; m_matchOptions.push_back(std::move(value)); return *this; }
70
72
76 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
77 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
78 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
79 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
80 inline DimensionValues& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
81 inline DimensionValues& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
82 inline DimensionValues& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
83 inline DimensionValues& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
84 inline DimensionValues& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
86 private:
87
88 Dimension m_key;
89 bool m_keyHasBeenSet = false;
90
91 Aws::Vector<MatchOption> m_matchOptions;
92 bool m_matchOptionsHasBeenSet = false;
93
95 bool m_valuesHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace FreeTier
100} // namespace Aws
const Aws::Vector< Aws::String > & GetValues() const
void SetValues(const Aws::Vector< Aws::String > &value)
DimensionValues & AddValues(const char *value)
void SetKey(const Dimension &value)
DimensionValues & WithKey(const Dimension &value)
DimensionValues & AddValues(const Aws::String &value)
AWS_FREETIER_API DimensionValues & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValues(Aws::Vector< Aws::String > &&value)
AWS_FREETIER_API DimensionValues(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< MatchOption > & GetMatchOptions() const
DimensionValues & WithMatchOptions(const Aws::Vector< MatchOption > &value)
DimensionValues & WithValues(const Aws::Vector< Aws::String > &value)
void SetMatchOptions(const Aws::Vector< MatchOption > &value)
DimensionValues & AddMatchOptions(MatchOption &&value)
DimensionValues & AddMatchOptions(const MatchOption &value)
DimensionValues & AddValues(Aws::String &&value)
DimensionValues & WithKey(Dimension &&value)
void SetMatchOptions(Aws::Vector< MatchOption > &&value)
AWS_FREETIER_API Aws::Utils::Json::JsonValue Jsonize() const
DimensionValues & WithMatchOptions(Aws::Vector< MatchOption > &&value)
DimensionValues & WithValues(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue