AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SetDimension.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10#include <aws/pinpoint/model/DimensionType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint {
22namespace Model {
23
31 public:
32 AWS_PINPOINT_API SetDimension() = default;
33 AWS_PINPOINT_API SetDimension(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline DimensionType GetDimensionType() const { return m_dimensionType; }
44 inline bool DimensionTypeHasBeenSet() const { return m_dimensionTypeHasBeenSet; }
45 inline void SetDimensionType(DimensionType value) {
46 m_dimensionTypeHasBeenSet = true;
47 m_dimensionType = value;
48 }
50 SetDimensionType(value);
51 return *this;
52 }
54
56
61 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
62 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
63 template <typename ValuesT = Aws::Vector<Aws::String>>
64 void SetValues(ValuesT&& value) {
65 m_valuesHasBeenSet = true;
66 m_values = std::forward<ValuesT>(value);
67 }
68 template <typename ValuesT = Aws::Vector<Aws::String>>
69 SetDimension& WithValues(ValuesT&& value) {
70 SetValues(std::forward<ValuesT>(value));
71 return *this;
72 }
73 template <typename ValuesT = Aws::String>
74 SetDimension& AddValues(ValuesT&& value) {
75 m_valuesHasBeenSet = true;
76 m_values.emplace_back(std::forward<ValuesT>(value));
77 return *this;
78 }
80 private:
82 bool m_dimensionTypeHasBeenSet = false;
83
85 bool m_valuesHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Pinpoint
90} // namespace Aws
AWS_PINPOINT_API SetDimension & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetValues() const
void SetDimensionType(DimensionType value)
SetDimension & AddValues(ValuesT &&value)
AWS_PINPOINT_API SetDimension()=default
DimensionType GetDimensionType() const
SetDimension & WithValues(ValuesT &&value)
void SetValues(ValuesT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
SetDimension & WithDimensionType(DimensionType value)
AWS_PINPOINT_API SetDimension(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue