AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetComputationId(const Aws::String& value) { m_computationIdHasBeenSet = true; m_computationId = value; }
50 inline void SetComputationId(Aws::String&& value) { m_computationIdHasBeenSet = true; m_computationId = std::move(value); }
51 inline void SetComputationId(const char* value) { m_computationIdHasBeenSet = true; m_computationId.assign(value); }
52 inline PeriodToDateComputation& WithComputationId(const Aws::String& value) { SetComputationId(value); return *this;}
53 inline PeriodToDateComputation& WithComputationId(Aws::String&& value) { SetComputationId(std::move(value)); return *this;}
54 inline PeriodToDateComputation& WithComputationId(const char* value) { SetComputationId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline PeriodToDateComputation& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline PeriodToDateComputation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline PeriodToDateComputation& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const DimensionField& GetTime() const{ return m_time; }
76 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
77 inline void SetTime(const DimensionField& value) { m_timeHasBeenSet = true; m_time = value; }
78 inline void SetTime(DimensionField&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
79 inline PeriodToDateComputation& WithTime(const DimensionField& value) { SetTime(value); return *this;}
80 inline PeriodToDateComputation& WithTime(DimensionField&& value) { SetTime(std::move(value)); return *this;}
82
84
87 inline const MeasureField& GetValue() const{ return m_value; }
88 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
89 inline void SetValue(const MeasureField& value) { m_valueHasBeenSet = true; m_value = value; }
90 inline void SetValue(MeasureField&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
91 inline PeriodToDateComputation& WithValue(const MeasureField& value) { SetValue(value); return *this;}
92 inline PeriodToDateComputation& WithValue(MeasureField&& value) { SetValue(std::move(value)); return *this;}
94
96
101 inline const TimeGranularity& GetPeriodTimeGranularity() const{ return m_periodTimeGranularity; }
102 inline bool PeriodTimeGranularityHasBeenSet() const { return m_periodTimeGranularityHasBeenSet; }
103 inline void SetPeriodTimeGranularity(const TimeGranularity& value) { m_periodTimeGranularityHasBeenSet = true; m_periodTimeGranularity = value; }
104 inline void SetPeriodTimeGranularity(TimeGranularity&& value) { m_periodTimeGranularityHasBeenSet = true; m_periodTimeGranularity = std::move(value); }
108 private:
109
110 Aws::String m_computationId;
111 bool m_computationIdHasBeenSet = false;
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 DimensionField m_time;
117 bool m_timeHasBeenSet = false;
118
119 MeasureField m_value;
120 bool m_valueHasBeenSet = false;
121
122 TimeGranularity m_periodTimeGranularity;
123 bool m_periodTimeGranularityHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace QuickSight
128} // namespace Aws
PeriodToDateComputation & WithPeriodTimeGranularity(const TimeGranularity &value)
PeriodToDateComputation & WithPeriodTimeGranularity(TimeGranularity &&value)
AWS_QUICKSIGHT_API PeriodToDateComputation(Aws::Utils::Json::JsonView jsonValue)
PeriodToDateComputation & WithTime(const DimensionField &value)
PeriodToDateComputation & WithComputationId(Aws::String &&value)
PeriodToDateComputation & WithValue(const MeasureField &value)
PeriodToDateComputation & WithName(const Aws::String &value)
PeriodToDateComputation & WithName(const char *value)
AWS_QUICKSIGHT_API PeriodToDateComputation & operator=(Aws::Utils::Json::JsonView jsonValue)
PeriodToDateComputation & WithComputationId(const char *value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
PeriodToDateComputation & WithValue(MeasureField &&value)
PeriodToDateComputation & WithName(Aws::String &&value)
PeriodToDateComputation & WithComputationId(const Aws::String &value)
void SetPeriodTimeGranularity(const TimeGranularity &value)
PeriodToDateComputation & WithTime(DimensionField &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue