AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DateTimeDatasetParameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/DatasetParameterValueType.h>
10#include <aws/quicksight/model/DateTimeDatasetParameterDefaultValues.h>
11#include <aws/quicksight/model/TimeGranularity.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight {
23namespace Model {
24
31 public:
32 AWS_QUICKSIGHT_API DateTimeDatasetParameter() = default;
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
78 inline DatasetParameterValueType GetValueType() const { return m_valueType; }
79 inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; }
81 m_valueTypeHasBeenSet = true;
82 m_valueType = value;
83 }
85 SetValueType(value);
86 return *this;
87 }
89
91
94 inline TimeGranularity GetTimeGranularity() const { return m_timeGranularity; }
95 inline bool TimeGranularityHasBeenSet() const { return m_timeGranularityHasBeenSet; }
97 m_timeGranularityHasBeenSet = true;
98 m_timeGranularity = value;
99 }
101 SetTimeGranularity(value);
102 return *this;
103 }
105
107
111 inline const DateTimeDatasetParameterDefaultValues& GetDefaultValues() const { return m_defaultValues; }
112 inline bool DefaultValuesHasBeenSet() const { return m_defaultValuesHasBeenSet; }
113 template <typename DefaultValuesT = DateTimeDatasetParameterDefaultValues>
114 void SetDefaultValues(DefaultValuesT&& value) {
115 m_defaultValuesHasBeenSet = true;
116 m_defaultValues = std::forward<DefaultValuesT>(value);
117 }
118 template <typename DefaultValuesT = DateTimeDatasetParameterDefaultValues>
120 SetDefaultValues(std::forward<DefaultValuesT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_id;
126
127 Aws::String m_name;
128
130
131 TimeGranularity m_timeGranularity{TimeGranularity::NOT_SET};
132
133 DateTimeDatasetParameterDefaultValues m_defaultValues;
134 bool m_idHasBeenSet = false;
135 bool m_nameHasBeenSet = false;
136 bool m_valueTypeHasBeenSet = false;
137 bool m_timeGranularityHasBeenSet = false;
138 bool m_defaultValuesHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace QuickSight
143} // namespace Aws
void SetValueType(DatasetParameterValueType value)
DateTimeDatasetParameter & WithValueType(DatasetParameterValueType value)
AWS_QUICKSIGHT_API DateTimeDatasetParameter(Aws::Utils::Json::JsonView jsonValue)
DateTimeDatasetParameter & WithId(IdT &&value)
AWS_QUICKSIGHT_API DateTimeDatasetParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const DateTimeDatasetParameterDefaultValues & GetDefaultValues() const
AWS_QUICKSIGHT_API DateTimeDatasetParameter()=default
DateTimeDatasetParameter & WithDefaultValues(DefaultValuesT &&value)
DateTimeDatasetParameter & WithName(NameT &&value)
DateTimeDatasetParameter & WithTimeGranularity(TimeGranularity value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue