AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DimensionValues.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/billing/model/Dimension.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Billing {
22namespace Model {
23
31 public:
32 AWS_BILLING_API DimensionValues() = default;
33 AWS_BILLING_API DimensionValues(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline Dimension GetKey() const { return m_key; }
43 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
44 inline void SetKey(Dimension value) {
45 m_keyHasBeenSet = true;
46 m_key = value;
47 }
49 SetKey(value);
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
59 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
60 template <typename ValuesT = Aws::Vector<Aws::String>>
61 void SetValues(ValuesT&& value) {
62 m_valuesHasBeenSet = true;
63 m_values = std::forward<ValuesT>(value);
64 }
65 template <typename ValuesT = Aws::Vector<Aws::String>>
66 DimensionValues& WithValues(ValuesT&& value) {
67 SetValues(std::forward<ValuesT>(value));
68 return *this;
69 }
70 template <typename ValuesT = Aws::String>
71 DimensionValues& AddValues(ValuesT&& value) {
72 m_valuesHasBeenSet = true;
73 m_values.emplace_back(std::forward<ValuesT>(value));
74 return *this;
75 }
77 private:
79
81 bool m_keyHasBeenSet = false;
82 bool m_valuesHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Billing
87} // namespace Aws
DimensionValues & WithValues(ValuesT &&value)
AWS_BILLING_API DimensionValues & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLING_API DimensionValues()=default
const Aws::Vector< Aws::String > & GetValues() const
DimensionValues & AddValues(ValuesT &&value)
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BILLING_API DimensionValues(Aws::Utils::Json::JsonView jsonValue)
DimensionValues & WithKey(Dimension value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue