AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DateDimension.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/customer-profiles/CustomerProfiles_EXPORTS.h>
10#include <aws/customer-profiles/model/DateDimensionType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CustomerProfiles {
22namespace Model {
23
31 public:
32 AWS_CUSTOMERPROFILES_API DateDimension() = default;
33 AWS_CUSTOMERPROFILES_API DateDimension(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API DateDimension& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline DateDimensionType GetDimensionType() const { return m_dimensionType; }
42 inline bool DimensionTypeHasBeenSet() const { return m_dimensionTypeHasBeenSet; }
44 m_dimensionTypeHasBeenSet = true;
45 m_dimensionType = value;
46 }
48 SetDimensionType(value);
49 return *this;
50 }
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) {
61 m_valuesHasBeenSet = true;
62 m_values = std::forward<ValuesT>(value);
63 }
64 template <typename ValuesT = Aws::Vector<Aws::String>>
65 DateDimension& WithValues(ValuesT&& value) {
66 SetValues(std::forward<ValuesT>(value));
67 return *this;
68 }
69 template <typename ValuesT = Aws::String>
70 DateDimension& AddValues(ValuesT&& value) {
71 m_valuesHasBeenSet = true;
72 m_values.emplace_back(std::forward<ValuesT>(value));
73 return *this;
74 }
76 private:
78
80 bool m_dimensionTypeHasBeenSet = false;
81 bool m_valuesHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace CustomerProfiles
86} // namespace Aws
AWS_CUSTOMERPROFILES_API DateDimension(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API DateDimension()=default
const Aws::Vector< Aws::String > & GetValues() const
AWS_CUSTOMERPROFILES_API DateDimension & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDimensionType(DateDimensionType value)
DateDimension & WithValues(ValuesT &&value)
DateDimension & AddValues(ValuesT &&value)
DateDimension & WithDimensionType(DateDimensionType value)
DateDimensionType GetDimensionType() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue