AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.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 Billing
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BILLING_API DimensionValues() = default;
38 AWS_BILLING_API DimensionValues(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline Dimension GetKey() const { return m_key; }
49 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
50 inline void SetKey(Dimension value) { m_keyHasBeenSet = true; m_key = value; }
51 inline DimensionValues& WithKey(Dimension value) { SetKey(value); return *this;}
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) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
62 template<typename ValuesT = Aws::Vector<Aws::String>>
63 DimensionValues& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
64 template<typename ValuesT = Aws::String>
65 DimensionValues& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
67 private:
68
70 bool m_keyHasBeenSet = false;
71
73 bool m_valuesHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Billing
78} // 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