AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DateTimeDefaultValues.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/DynamicDefaultValue.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/model/RollingDateConfiguration.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_QUICKSIGHT_API DateTimeDefaultValues() = default;
41 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const DynamicDefaultValue& GetDynamicValue() const { return m_dynamicValue; }
50 inline bool DynamicValueHasBeenSet() const { return m_dynamicValueHasBeenSet; }
51 template<typename DynamicValueT = DynamicDefaultValue>
52 void SetDynamicValue(DynamicValueT&& value) { m_dynamicValueHasBeenSet = true; m_dynamicValue = std::forward<DynamicValueT>(value); }
53 template<typename DynamicValueT = DynamicDefaultValue>
54 DateTimeDefaultValues& WithDynamicValue(DynamicValueT&& value) { SetDynamicValue(std::forward<DynamicValueT>(value)); return *this;}
56
58
61 inline const Aws::Vector<Aws::Utils::DateTime>& GetStaticValues() const { return m_staticValues; }
62 inline bool StaticValuesHasBeenSet() const { return m_staticValuesHasBeenSet; }
63 template<typename StaticValuesT = Aws::Vector<Aws::Utils::DateTime>>
64 void SetStaticValues(StaticValuesT&& value) { m_staticValuesHasBeenSet = true; m_staticValues = std::forward<StaticValuesT>(value); }
65 template<typename StaticValuesT = Aws::Vector<Aws::Utils::DateTime>>
66 DateTimeDefaultValues& WithStaticValues(StaticValuesT&& value) { SetStaticValues(std::forward<StaticValuesT>(value)); return *this;}
67 template<typename StaticValuesT = Aws::Utils::DateTime>
68 DateTimeDefaultValues& AddStaticValues(StaticValuesT&& value) { m_staticValuesHasBeenSet = true; m_staticValues.emplace_back(std::forward<StaticValuesT>(value)); return *this; }
70
72
76 inline const RollingDateConfiguration& GetRollingDate() const { return m_rollingDate; }
77 inline bool RollingDateHasBeenSet() const { return m_rollingDateHasBeenSet; }
78 template<typename RollingDateT = RollingDateConfiguration>
79 void SetRollingDate(RollingDateT&& value) { m_rollingDateHasBeenSet = true; m_rollingDate = std::forward<RollingDateT>(value); }
80 template<typename RollingDateT = RollingDateConfiguration>
81 DateTimeDefaultValues& WithRollingDate(RollingDateT&& value) { SetRollingDate(std::forward<RollingDateT>(value)); return *this;}
83 private:
84
85 DynamicDefaultValue m_dynamicValue;
86 bool m_dynamicValueHasBeenSet = false;
87
89 bool m_staticValuesHasBeenSet = false;
90
91 RollingDateConfiguration m_rollingDate;
92 bool m_rollingDateHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace QuickSight
97} // namespace Aws
AWS_QUICKSIGHT_API DateTimeDefaultValues(Aws::Utils::Json::JsonView jsonValue)
DateTimeDefaultValues & AddStaticValues(StaticValuesT &&value)
DateTimeDefaultValues & WithStaticValues(StaticValuesT &&value)
DateTimeDefaultValues & WithRollingDate(RollingDateT &&value)
const RollingDateConfiguration & GetRollingDate() const
const DynamicDefaultValue & GetDynamicValue() const
AWS_QUICKSIGHT_API DateTimeDefaultValues()=default
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::Utils::DateTime > & GetStaticValues() const
AWS_QUICKSIGHT_API DateTimeDefaultValues & operator=(Aws::Utils::Json::JsonView jsonValue)
DateTimeDefaultValues & WithDynamicValue(DynamicValueT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue