AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DateTimeParameterDeclaration.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/model/DateTimeDefaultValues.h>
10#include <aws/quicksight/model/TimeGranularity.h>
11#include <aws/quicksight/model/DateTimeValueWhenUnsetConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/quicksight/model/MappedDataSetParameter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace QuickSight
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_QUICKSIGHT_API DateTimeParameterDeclaration() = default;
43 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 DateTimeParameterDeclaration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_defaultValuesHasBeenSet = true; m_defaultValues = std::forward<DefaultValuesT>(value); }
67 template<typename DefaultValuesT = DateTimeDefaultValues>
68 DateTimeParameterDeclaration& WithDefaultValues(DefaultValuesT&& value) { SetDefaultValues(std::forward<DefaultValuesT>(value)); return *this;}
70
72
76 inline TimeGranularity GetTimeGranularity() const { return m_timeGranularity; }
77 inline bool TimeGranularityHasBeenSet() const { return m_timeGranularityHasBeenSet; }
78 inline void SetTimeGranularity(TimeGranularity value) { m_timeGranularityHasBeenSet = true; m_timeGranularity = value; }
81
83
87 inline const DateTimeValueWhenUnsetConfiguration& GetValueWhenUnset() const { return m_valueWhenUnset; }
88 inline bool ValueWhenUnsetHasBeenSet() const { return m_valueWhenUnsetHasBeenSet; }
89 template<typename ValueWhenUnsetT = DateTimeValueWhenUnsetConfiguration>
90 void SetValueWhenUnset(ValueWhenUnsetT&& value) { m_valueWhenUnsetHasBeenSet = true; m_valueWhenUnset = std::forward<ValueWhenUnsetT>(value); }
91 template<typename ValueWhenUnsetT = DateTimeValueWhenUnsetConfiguration>
92 DateTimeParameterDeclaration& WithValueWhenUnset(ValueWhenUnsetT&& value) { SetValueWhenUnset(std::forward<ValueWhenUnsetT>(value)); return *this;}
94
96
97 inline const Aws::Vector<MappedDataSetParameter>& GetMappedDataSetParameters() const { return m_mappedDataSetParameters; }
98 inline bool MappedDataSetParametersHasBeenSet() const { return m_mappedDataSetParametersHasBeenSet; }
99 template<typename MappedDataSetParametersT = Aws::Vector<MappedDataSetParameter>>
100 void SetMappedDataSetParameters(MappedDataSetParametersT&& value) { m_mappedDataSetParametersHasBeenSet = true; m_mappedDataSetParameters = std::forward<MappedDataSetParametersT>(value); }
101 template<typename MappedDataSetParametersT = Aws::Vector<MappedDataSetParameter>>
102 DateTimeParameterDeclaration& WithMappedDataSetParameters(MappedDataSetParametersT&& value) { SetMappedDataSetParameters(std::forward<MappedDataSetParametersT>(value)); return *this;}
103 template<typename MappedDataSetParametersT = MappedDataSetParameter>
104 DateTimeParameterDeclaration& AddMappedDataSetParameters(MappedDataSetParametersT&& value) { m_mappedDataSetParametersHasBeenSet = true; m_mappedDataSetParameters.emplace_back(std::forward<MappedDataSetParametersT>(value)); return *this; }
106 private:
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110
111 DateTimeDefaultValues m_defaultValues;
112 bool m_defaultValuesHasBeenSet = false;
113
114 TimeGranularity m_timeGranularity{TimeGranularity::NOT_SET};
115 bool m_timeGranularityHasBeenSet = false;
116
117 DateTimeValueWhenUnsetConfiguration m_valueWhenUnset;
118 bool m_valueWhenUnsetHasBeenSet = false;
119
120 Aws::Vector<MappedDataSetParameter> m_mappedDataSetParameters;
121 bool m_mappedDataSetParametersHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace QuickSight
126} // 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