AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ProfileDimension.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/StringDimensionType.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 CustomerProfiles
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CUSTOMERPROFILES_API ProfileDimension() = default;
38 AWS_CUSTOMERPROFILES_API ProfileDimension(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CUSTOMERPROFILES_API ProfileDimension& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline StringDimensionType GetDimensionType() const { return m_dimensionType; }
48 inline bool DimensionTypeHasBeenSet() const { return m_dimensionTypeHasBeenSet; }
49 inline void SetDimensionType(StringDimensionType value) { m_dimensionTypeHasBeenSet = true; m_dimensionType = value; }
52
54
57 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
58 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
59 template<typename ValuesT = Aws::Vector<Aws::String>>
60 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
61 template<typename ValuesT = Aws::Vector<Aws::String>>
62 ProfileDimension& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
63 template<typename ValuesT = Aws::String>
64 ProfileDimension& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
66 private:
67
69 bool m_dimensionTypeHasBeenSet = false;
70
72 bool m_valuesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace CustomerProfiles
77} // namespace Aws
ProfileDimension & AddValues(ValuesT &&value)
AWS_CUSTOMERPROFILES_API ProfileDimension & operator=(Aws::Utils::Json::JsonView jsonValue)
ProfileDimension & WithValues(ValuesT &&value)
AWS_CUSTOMERPROFILES_API ProfileDimension(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetValues() const
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
ProfileDimension & WithDimensionType(StringDimensionType value)
AWS_CUSTOMERPROFILES_API ProfileDimension()=default
void SetDimensionType(StringDimensionType value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue