AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AggFunction.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/AggType.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/quicksight/model/TopicTimeGranularity.h>
11#include <aws/core/utils/memory/stl/AWSString.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 AggFunction();
38 AWS_QUICKSIGHT_API AggFunction(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API AggFunction& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const AggType& GetAggregation() const{ return m_aggregation; }
48 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
49 inline void SetAggregation(const AggType& value) { m_aggregationHasBeenSet = true; m_aggregation = value; }
50 inline void SetAggregation(AggType&& value) { m_aggregationHasBeenSet = true; m_aggregation = std::move(value); }
51 inline AggFunction& WithAggregation(const AggType& value) { SetAggregation(value); return *this;}
52 inline AggFunction& WithAggregation(AggType&& value) { SetAggregation(std::move(value)); return *this;}
54
56
59 inline const Aws::Map<Aws::String, Aws::String>& GetAggregationFunctionParameters() const{ return m_aggregationFunctionParameters; }
60 inline bool AggregationFunctionParametersHasBeenSet() const { return m_aggregationFunctionParametersHasBeenSet; }
61 inline void SetAggregationFunctionParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_aggregationFunctionParametersHasBeenSet = true; m_aggregationFunctionParameters = value; }
62 inline void SetAggregationFunctionParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_aggregationFunctionParametersHasBeenSet = true; m_aggregationFunctionParameters = std::move(value); }
65 inline AggFunction& AddAggregationFunctionParameters(const Aws::String& key, const Aws::String& value) { m_aggregationFunctionParametersHasBeenSet = true; m_aggregationFunctionParameters.emplace(key, value); return *this; }
66 inline AggFunction& AddAggregationFunctionParameters(Aws::String&& key, const Aws::String& value) { m_aggregationFunctionParametersHasBeenSet = true; m_aggregationFunctionParameters.emplace(std::move(key), value); return *this; }
67 inline AggFunction& AddAggregationFunctionParameters(const Aws::String& key, Aws::String&& value) { m_aggregationFunctionParametersHasBeenSet = true; m_aggregationFunctionParameters.emplace(key, std::move(value)); return *this; }
68 inline AggFunction& AddAggregationFunctionParameters(Aws::String&& key, Aws::String&& value) { m_aggregationFunctionParametersHasBeenSet = true; m_aggregationFunctionParameters.emplace(std::move(key), std::move(value)); return *this; }
69 inline AggFunction& AddAggregationFunctionParameters(const char* key, Aws::String&& value) { m_aggregationFunctionParametersHasBeenSet = true; m_aggregationFunctionParameters.emplace(key, std::move(value)); return *this; }
70 inline AggFunction& AddAggregationFunctionParameters(Aws::String&& key, const char* value) { m_aggregationFunctionParametersHasBeenSet = true; m_aggregationFunctionParameters.emplace(std::move(key), value); return *this; }
71 inline AggFunction& AddAggregationFunctionParameters(const char* key, const char* value) { m_aggregationFunctionParametersHasBeenSet = true; m_aggregationFunctionParameters.emplace(key, value); return *this; }
73
75
78 inline const TopicTimeGranularity& GetPeriod() const{ return m_period; }
79 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
80 inline void SetPeriod(const TopicTimeGranularity& value) { m_periodHasBeenSet = true; m_period = value; }
81 inline void SetPeriod(TopicTimeGranularity&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
82 inline AggFunction& WithPeriod(const TopicTimeGranularity& value) { SetPeriod(value); return *this;}
83 inline AggFunction& WithPeriod(TopicTimeGranularity&& value) { SetPeriod(std::move(value)); return *this;}
85
87
90 inline const Aws::String& GetPeriodField() const{ return m_periodField; }
91 inline bool PeriodFieldHasBeenSet() const { return m_periodFieldHasBeenSet; }
92 inline void SetPeriodField(const Aws::String& value) { m_periodFieldHasBeenSet = true; m_periodField = value; }
93 inline void SetPeriodField(Aws::String&& value) { m_periodFieldHasBeenSet = true; m_periodField = std::move(value); }
94 inline void SetPeriodField(const char* value) { m_periodFieldHasBeenSet = true; m_periodField.assign(value); }
95 inline AggFunction& WithPeriodField(const Aws::String& value) { SetPeriodField(value); return *this;}
96 inline AggFunction& WithPeriodField(Aws::String&& value) { SetPeriodField(std::move(value)); return *this;}
97 inline AggFunction& WithPeriodField(const char* value) { SetPeriodField(value); return *this;}
99 private:
100
101 AggType m_aggregation;
102 bool m_aggregationHasBeenSet = false;
103
104 Aws::Map<Aws::String, Aws::String> m_aggregationFunctionParameters;
105 bool m_aggregationFunctionParametersHasBeenSet = false;
106
107 TopicTimeGranularity m_period;
108 bool m_periodHasBeenSet = false;
109
110 Aws::String m_periodField;
111 bool m_periodFieldHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace QuickSight
116} // namespace Aws
void SetAggregationFunctionParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition AggFunction.h:62
AggFunction & WithPeriod(TopicTimeGranularity &&value)
Definition AggFunction.h:83
AggFunction & WithPeriodField(const Aws::String &value)
Definition AggFunction.h:95
const AggType & GetAggregation() const
Definition AggFunction.h:47
void SetAggregation(AggType &&value)
Definition AggFunction.h:50
AWS_QUICKSIGHT_API AggFunction & operator=(Aws::Utils::Json::JsonView jsonValue)
AggFunction & WithAggregationFunctionParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition AggFunction.h:63
const Aws::Map< Aws::String, Aws::String > & GetAggregationFunctionParameters() const
Definition AggFunction.h:59
AggFunction & AddAggregationFunctionParameters(const Aws::String &key, const Aws::String &value)
Definition AggFunction.h:65
void SetPeriodField(const char *value)
Definition AggFunction.h:94
AggFunction & WithAggregation(const AggType &value)
Definition AggFunction.h:51
void SetPeriodField(Aws::String &&value)
Definition AggFunction.h:93
AggFunction & AddAggregationFunctionParameters(const char *key, Aws::String &&value)
Definition AggFunction.h:69
void SetPeriod(TopicTimeGranularity &&value)
Definition AggFunction.h:81
void SetPeriodField(const Aws::String &value)
Definition AggFunction.h:92
AggFunction & AddAggregationFunctionParameters(const char *key, const char *value)
Definition AggFunction.h:71
void SetAggregationFunctionParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition AggFunction.h:61
AggFunction & WithPeriod(const TopicTimeGranularity &value)
Definition AggFunction.h:82
const Aws::String & GetPeriodField() const
Definition AggFunction.h:90
AWS_QUICKSIGHT_API AggFunction()
AWS_QUICKSIGHT_API AggFunction(Aws::Utils::Json::JsonView jsonValue)
AggFunction & AddAggregationFunctionParameters(Aws::String &&key, const Aws::String &value)
Definition AggFunction.h:66
AggFunction & WithAggregation(AggType &&value)
Definition AggFunction.h:52
AggFunction & AddAggregationFunctionParameters(Aws::String &&key, const char *value)
Definition AggFunction.h:70
AggFunction & AddAggregationFunctionParameters(const Aws::String &key, Aws::String &&value)
Definition AggFunction.h:67
AggFunction & AddAggregationFunctionParameters(Aws::String &&key, Aws::String &&value)
Definition AggFunction.h:68
void SetAggregation(const AggType &value)
Definition AggFunction.h:49
void SetPeriod(const TopicTimeGranularity &value)
Definition AggFunction.h:80
AggFunction & WithPeriodField(const char *value)
Definition AggFunction.h:97
AggFunction & WithAggregationFunctionParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition AggFunction.h:64
AggFunction & WithPeriodField(Aws::String &&value)
Definition AggFunction.h:96
const TopicTimeGranularity & GetPeriod() const
Definition AggFunction.h:78
bool AggregationFunctionParametersHasBeenSet() const
Definition AggFunction.h:60
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue