AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PeriodToDateComputation.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/DimensionField.h>
10#include <aws/quicksight/model/MeasureField.h>
11#include <aws/quicksight/model/TimeGranularity.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
35 {
36 public:
37 AWS_QUICKSIGHT_API PeriodToDateComputation() = default;
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetComputationId() const { return m_computationId; }
48 inline bool ComputationIdHasBeenSet() const { return m_computationIdHasBeenSet; }
49 template<typename ComputationIdT = Aws::String>
50 void SetComputationId(ComputationIdT&& value) { m_computationIdHasBeenSet = true; m_computationId = std::forward<ComputationIdT>(value); }
51 template<typename ComputationIdT = Aws::String>
52 PeriodToDateComputation& WithComputationId(ComputationIdT&& value) { SetComputationId(std::forward<ComputationIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 PeriodToDateComputation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const DimensionField& GetTime() const { return m_time; }
72 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
73 template<typename TimeT = DimensionField>
74 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
75 template<typename TimeT = DimensionField>
76 PeriodToDateComputation& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
78
80
83 inline const MeasureField& GetValue() const { return m_value; }
84 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
85 template<typename ValueT = MeasureField>
86 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
87 template<typename ValueT = MeasureField>
88 PeriodToDateComputation& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
90
92
97 inline TimeGranularity GetPeriodTimeGranularity() const { return m_periodTimeGranularity; }
98 inline bool PeriodTimeGranularityHasBeenSet() const { return m_periodTimeGranularityHasBeenSet; }
99 inline void SetPeriodTimeGranularity(TimeGranularity value) { m_periodTimeGranularityHasBeenSet = true; m_periodTimeGranularity = value; }
102 private:
103
104 Aws::String m_computationId;
105 bool m_computationIdHasBeenSet = false;
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 DimensionField m_time;
111 bool m_timeHasBeenSet = false;
112
113 MeasureField m_value;
114 bool m_valueHasBeenSet = false;
115
116 TimeGranularity m_periodTimeGranularity{TimeGranularity::NOT_SET};
117 bool m_periodTimeGranularityHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace QuickSight
122} // namespace Aws
AWS_QUICKSIGHT_API PeriodToDateComputation(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API PeriodToDateComputation()=default
PeriodToDateComputation & WithName(NameT &&value)
PeriodToDateComputation & WithPeriodTimeGranularity(TimeGranularity value)
AWS_QUICKSIGHT_API PeriodToDateComputation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
PeriodToDateComputation & WithComputationId(ComputationIdT &&value)
PeriodToDateComputation & WithValue(ValueT &&value)
PeriodToDateComputation & WithTime(TimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue