AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
AttributeDimension.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/AttributeType.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 AttributeDimension() = default;
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
52 inline AttributeType GetAttributeType() const { return m_attributeType; }
53 inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; }
54 inline void SetAttributeType(AttributeType value) {
55 m_attributeTypeHasBeenSet = true;
56 m_attributeType = value;
57 }
59 SetAttributeType(value);
60 return *this;
61 }
63
65
70 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
71 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
72 template <typename ValuesT = Aws::Vector<Aws::String>>
73 void SetValues(ValuesT&& value) {
74 m_valuesHasBeenSet = true;
75 m_values = std::forward<ValuesT>(value);
76 }
77 template <typename ValuesT = Aws::Vector<Aws::String>>
78 AttributeDimension& WithValues(ValuesT&& value) {
79 SetValues(std::forward<ValuesT>(value));
80 return *this;
81 }
82 template <typename ValuesT = Aws::String>
83 AttributeDimension& AddValues(ValuesT&& value) {
84 m_valuesHasBeenSet = true;
85 m_values.emplace_back(std::forward<ValuesT>(value));
86 return *this;
87 }
89 private:
91 bool m_attributeTypeHasBeenSet = false;
92
94 bool m_valuesHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Pinpoint
99} // namespace Aws
AttributeDimension & WithValues(ValuesT &&value)
AWS_PINPOINT_API AttributeDimension & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API AttributeDimension()=default
AttributeDimension & WithAttributeType(AttributeType value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API AttributeDimension(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetValues() const
AttributeDimension & AddValues(ValuesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue