AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BodySectionDynamicNumericDimensionConfiguration.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/ColumnIdentifier.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/model/ColumnSort.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight
24{
25namespace Model
26{
27
35 {
36 public:
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const ColumnIdentifier& GetColumn() const { return m_column; }
46 inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; }
47 template<typename ColumnT = ColumnIdentifier>
48 void SetColumn(ColumnT&& value) { m_columnHasBeenSet = true; m_column = std::forward<ColumnT>(value); }
49 template<typename ColumnT = ColumnIdentifier>
50 BodySectionDynamicNumericDimensionConfiguration& WithColumn(ColumnT&& value) { SetColumn(std::forward<ColumnT>(value)); return *this;}
52
54
57 inline int GetLimit() const { return m_limit; }
58 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
59 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
60 inline BodySectionDynamicNumericDimensionConfiguration& WithLimit(int value) { SetLimit(value); return *this;}
62
64
67 inline const Aws::Vector<ColumnSort>& GetSortByMetrics() const { return m_sortByMetrics; }
68 inline bool SortByMetricsHasBeenSet() const { return m_sortByMetricsHasBeenSet; }
69 template<typename SortByMetricsT = Aws::Vector<ColumnSort>>
70 void SetSortByMetrics(SortByMetricsT&& value) { m_sortByMetricsHasBeenSet = true; m_sortByMetrics = std::forward<SortByMetricsT>(value); }
71 template<typename SortByMetricsT = Aws::Vector<ColumnSort>>
72 BodySectionDynamicNumericDimensionConfiguration& WithSortByMetrics(SortByMetricsT&& value) { SetSortByMetrics(std::forward<SortByMetricsT>(value)); return *this;}
73 template<typename SortByMetricsT = ColumnSort>
74 BodySectionDynamicNumericDimensionConfiguration& AddSortByMetrics(SortByMetricsT&& value) { m_sortByMetricsHasBeenSet = true; m_sortByMetrics.emplace_back(std::forward<SortByMetricsT>(value)); return *this; }
76 private:
77
78 ColumnIdentifier m_column;
79 bool m_columnHasBeenSet = false;
80
81 int m_limit{0};
82 bool m_limitHasBeenSet = false;
83
84 Aws::Vector<ColumnSort> m_sortByMetrics;
85 bool m_sortByMetricsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace QuickSight
90} // namespace Aws
BodySectionDynamicNumericDimensionConfiguration & WithSortByMetrics(SortByMetricsT &&value)
AWS_QUICKSIGHT_API BodySectionDynamicNumericDimensionConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
BodySectionDynamicNumericDimensionConfiguration & AddSortByMetrics(SortByMetricsT &&value)
AWS_QUICKSIGHT_API BodySectionDynamicNumericDimensionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue