AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
DateTimeParameterDeclaration.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/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/DateTimeDefaultValues.h>
11#include <aws/quicksight/model/DateTimeValueWhenUnsetConfiguration.h>
12#include <aws/quicksight/model/MappedDataSetParameter.h>
13#include <aws/quicksight/model/TimeGranularity.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight {
25namespace Model {
26
34 public:
35 AWS_QUICKSIGHT_API DateTimeParameterDeclaration() = default;
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
63 inline const DateTimeDefaultValues& GetDefaultValues() const { return m_defaultValues; }
64 inline bool DefaultValuesHasBeenSet() const { return m_defaultValuesHasBeenSet; }
65 template <typename DefaultValuesT = DateTimeDefaultValues>
66 void SetDefaultValues(DefaultValuesT&& value) {
67 m_defaultValuesHasBeenSet = true;
68 m_defaultValues = std::forward<DefaultValuesT>(value);
69 }
70 template <typename DefaultValuesT = DateTimeDefaultValues>
72 SetDefaultValues(std::forward<DefaultValuesT>(value));
73 return *this;
74 }
76
78
82 inline TimeGranularity GetTimeGranularity() const { return m_timeGranularity; }
83 inline bool TimeGranularityHasBeenSet() const { return m_timeGranularityHasBeenSet; }
85 m_timeGranularityHasBeenSet = true;
86 m_timeGranularity = value;
87 }
89 SetTimeGranularity(value);
90 return *this;
91 }
93
95
99 inline const DateTimeValueWhenUnsetConfiguration& GetValueWhenUnset() const { return m_valueWhenUnset; }
100 inline bool ValueWhenUnsetHasBeenSet() const { return m_valueWhenUnsetHasBeenSet; }
101 template <typename ValueWhenUnsetT = DateTimeValueWhenUnsetConfiguration>
102 void SetValueWhenUnset(ValueWhenUnsetT&& value) {
103 m_valueWhenUnsetHasBeenSet = true;
104 m_valueWhenUnset = std::forward<ValueWhenUnsetT>(value);
105 }
106 template <typename ValueWhenUnsetT = DateTimeValueWhenUnsetConfiguration>
108 SetValueWhenUnset(std::forward<ValueWhenUnsetT>(value));
109 return *this;
110 }
112
114
115 inline const Aws::Vector<MappedDataSetParameter>& GetMappedDataSetParameters() const { return m_mappedDataSetParameters; }
116 inline bool MappedDataSetParametersHasBeenSet() const { return m_mappedDataSetParametersHasBeenSet; }
117 template <typename MappedDataSetParametersT = Aws::Vector<MappedDataSetParameter>>
118 void SetMappedDataSetParameters(MappedDataSetParametersT&& value) {
119 m_mappedDataSetParametersHasBeenSet = true;
120 m_mappedDataSetParameters = std::forward<MappedDataSetParametersT>(value);
121 }
122 template <typename MappedDataSetParametersT = Aws::Vector<MappedDataSetParameter>>
124 SetMappedDataSetParameters(std::forward<MappedDataSetParametersT>(value));
125 return *this;
126 }
127 template <typename MappedDataSetParametersT = MappedDataSetParameter>
128 DateTimeParameterDeclaration& AddMappedDataSetParameters(MappedDataSetParametersT&& value) {
129 m_mappedDataSetParametersHasBeenSet = true;
130 m_mappedDataSetParameters.emplace_back(std::forward<MappedDataSetParametersT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_name;
136
137 DateTimeDefaultValues m_defaultValues;
138
139 TimeGranularity m_timeGranularity{TimeGranularity::NOT_SET};
140
141 DateTimeValueWhenUnsetConfiguration m_valueWhenUnset;
142
143 Aws::Vector<MappedDataSetParameter> m_mappedDataSetParameters;
144 bool m_nameHasBeenSet = false;
145 bool m_defaultValuesHasBeenSet = false;
146 bool m_timeGranularityHasBeenSet = false;
147 bool m_valueWhenUnsetHasBeenSet = false;
148 bool m_mappedDataSetParametersHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace QuickSight
153} // namespace Aws
DateTimeParameterDeclaration & WithTimeGranularity(TimeGranularity value)
const Aws::Vector< MappedDataSetParameter > & GetMappedDataSetParameters() const
AWS_QUICKSIGHT_API DateTimeParameterDeclaration(Aws::Utils::Json::JsonView jsonValue)
DateTimeParameterDeclaration & AddMappedDataSetParameters(MappedDataSetParametersT &&value)
DateTimeParameterDeclaration & WithMappedDataSetParameters(MappedDataSetParametersT &&value)
AWS_QUICKSIGHT_API DateTimeParameterDeclaration()=default
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMappedDataSetParameters(MappedDataSetParametersT &&value)
const DateTimeValueWhenUnsetConfiguration & GetValueWhenUnset() const
AWS_QUICKSIGHT_API DateTimeParameterDeclaration & operator=(Aws::Utils::Json::JsonView jsonValue)
DateTimeParameterDeclaration & WithValueWhenUnset(ValueWhenUnsetT &&value)
DateTimeParameterDeclaration & WithName(NameT &&value)
DateTimeParameterDeclaration & WithDefaultValues(DefaultValuesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue