AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AggregationPartitionBy.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/TimeGranularity.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QUICKSIGHT_API AggregationPartitionBy();
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetFieldName() const{ return m_fieldName; }
47 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
48 inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; }
49 inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); }
50 inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); }
51 inline AggregationPartitionBy& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;}
52 inline AggregationPartitionBy& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;}
53 inline AggregationPartitionBy& WithFieldName(const char* value) { SetFieldName(value); return *this;}
55
57
61 inline const TimeGranularity& GetTimeGranularity() const{ return m_timeGranularity; }
62 inline bool TimeGranularityHasBeenSet() const { return m_timeGranularityHasBeenSet; }
63 inline void SetTimeGranularity(const TimeGranularity& value) { m_timeGranularityHasBeenSet = true; m_timeGranularity = value; }
64 inline void SetTimeGranularity(TimeGranularity&& value) { m_timeGranularityHasBeenSet = true; m_timeGranularity = std::move(value); }
66 inline AggregationPartitionBy& WithTimeGranularity(TimeGranularity&& value) { SetTimeGranularity(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_fieldName;
71 bool m_fieldNameHasBeenSet = false;
72
73 TimeGranularity m_timeGranularity;
74 bool m_timeGranularityHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace QuickSight
79} // namespace Aws
AggregationPartitionBy & WithFieldName(Aws::String &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimeGranularity(const TimeGranularity &value)
AggregationPartitionBy & WithTimeGranularity(TimeGranularity &&value)
AWS_QUICKSIGHT_API AggregationPartitionBy(Aws::Utils::Json::JsonView jsonValue)
AggregationPartitionBy & WithFieldName(const char *value)
AggregationPartitionBy & WithTimeGranularity(const TimeGranularity &value)
AggregationPartitionBy & WithFieldName(const Aws::String &value)
AWS_QUICKSIGHT_API AggregationPartitionBy & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue