AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DateTimeDefaultValues.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/DynamicDefaultValue.h>
11#include <aws/quicksight/model/RollingDateConfiguration.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
32 public:
33 AWS_QUICKSIGHT_API DateTimeDefaultValues() = default;
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const DynamicDefaultValue& GetDynamicValue() const { return m_dynamicValue; }
44 inline bool DynamicValueHasBeenSet() const { return m_dynamicValueHasBeenSet; }
45 template <typename DynamicValueT = DynamicDefaultValue>
46 void SetDynamicValue(DynamicValueT&& value) {
47 m_dynamicValueHasBeenSet = true;
48 m_dynamicValue = std::forward<DynamicValueT>(value);
49 }
50 template <typename DynamicValueT = DynamicDefaultValue>
51 DateTimeDefaultValues& WithDynamicValue(DynamicValueT&& value) {
52 SetDynamicValue(std::forward<DynamicValueT>(value));
53 return *this;
54 }
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) {
65 m_staticValuesHasBeenSet = true;
66 m_staticValues = std::forward<StaticValuesT>(value);
67 }
68 template <typename StaticValuesT = Aws::Vector<Aws::Utils::DateTime>>
69 DateTimeDefaultValues& WithStaticValues(StaticValuesT&& value) {
70 SetStaticValues(std::forward<StaticValuesT>(value));
71 return *this;
72 }
73 template <typename StaticValuesT = Aws::Utils::DateTime>
74 DateTimeDefaultValues& AddStaticValues(StaticValuesT&& value) {
75 m_staticValuesHasBeenSet = true;
76 m_staticValues.emplace_back(std::forward<StaticValuesT>(value));
77 return *this;
78 }
80
82
86 inline const RollingDateConfiguration& GetRollingDate() const { return m_rollingDate; }
87 inline bool RollingDateHasBeenSet() const { return m_rollingDateHasBeenSet; }
88 template <typename RollingDateT = RollingDateConfiguration>
89 void SetRollingDate(RollingDateT&& value) {
90 m_rollingDateHasBeenSet = true;
91 m_rollingDate = std::forward<RollingDateT>(value);
92 }
93 template <typename RollingDateT = RollingDateConfiguration>
94 DateTimeDefaultValues& WithRollingDate(RollingDateT&& value) {
95 SetRollingDate(std::forward<RollingDateT>(value));
96 return *this;
97 }
99 private:
100 DynamicDefaultValue m_dynamicValue;
101
103
104 RollingDateConfiguration m_rollingDate;
105 bool m_dynamicValueHasBeenSet = false;
106 bool m_staticValuesHasBeenSet = false;
107 bool m_rollingDateHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace QuickSight
112} // 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