AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TotalOptions.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/Visibility.h>
9#include <aws/quicksight/model/TableTotalsPlacement.h>
10#include <aws/quicksight/model/TableTotalsScrollStatus.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/quicksight/model/TableCellStyle.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/quicksight/model/TotalAggregationOption.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace QuickSight
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_QUICKSIGHT_API TotalOptions() = default;
41 AWS_QUICKSIGHT_API TotalOptions(Aws::Utils::Json::JsonView jsonValue);
42 AWS_QUICKSIGHT_API TotalOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline Visibility GetTotalsVisibility() const { return m_totalsVisibility; }
51 inline bool TotalsVisibilityHasBeenSet() const { return m_totalsVisibilityHasBeenSet; }
52 inline void SetTotalsVisibility(Visibility value) { m_totalsVisibilityHasBeenSet = true; m_totalsVisibility = value; }
53 inline TotalOptions& WithTotalsVisibility(Visibility value) { SetTotalsVisibility(value); return *this;}
55
57
60 inline TableTotalsPlacement GetPlacement() const { return m_placement; }
61 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
62 inline void SetPlacement(TableTotalsPlacement value) { m_placementHasBeenSet = true; m_placement = value; }
63 inline TotalOptions& WithPlacement(TableTotalsPlacement value) { SetPlacement(value); return *this;}
65
67
70 inline TableTotalsScrollStatus GetScrollStatus() const { return m_scrollStatus; }
71 inline bool ScrollStatusHasBeenSet() const { return m_scrollStatusHasBeenSet; }
72 inline void SetScrollStatus(TableTotalsScrollStatus value) { m_scrollStatusHasBeenSet = true; m_scrollStatus = value; }
75
77
80 inline const Aws::String& GetCustomLabel() const { return m_customLabel; }
81 inline bool CustomLabelHasBeenSet() const { return m_customLabelHasBeenSet; }
82 template<typename CustomLabelT = Aws::String>
83 void SetCustomLabel(CustomLabelT&& value) { m_customLabelHasBeenSet = true; m_customLabel = std::forward<CustomLabelT>(value); }
84 template<typename CustomLabelT = Aws::String>
85 TotalOptions& WithCustomLabel(CustomLabelT&& value) { SetCustomLabel(std::forward<CustomLabelT>(value)); return *this;}
87
89
92 inline const TableCellStyle& GetTotalCellStyle() const { return m_totalCellStyle; }
93 inline bool TotalCellStyleHasBeenSet() const { return m_totalCellStyleHasBeenSet; }
94 template<typename TotalCellStyleT = TableCellStyle>
95 void SetTotalCellStyle(TotalCellStyleT&& value) { m_totalCellStyleHasBeenSet = true; m_totalCellStyle = std::forward<TotalCellStyleT>(value); }
96 template<typename TotalCellStyleT = TableCellStyle>
97 TotalOptions& WithTotalCellStyle(TotalCellStyleT&& value) { SetTotalCellStyle(std::forward<TotalCellStyleT>(value)); return *this;}
99
101
104 inline const Aws::Vector<TotalAggregationOption>& GetTotalAggregationOptions() const { return m_totalAggregationOptions; }
105 inline bool TotalAggregationOptionsHasBeenSet() const { return m_totalAggregationOptionsHasBeenSet; }
106 template<typename TotalAggregationOptionsT = Aws::Vector<TotalAggregationOption>>
107 void SetTotalAggregationOptions(TotalAggregationOptionsT&& value) { m_totalAggregationOptionsHasBeenSet = true; m_totalAggregationOptions = std::forward<TotalAggregationOptionsT>(value); }
108 template<typename TotalAggregationOptionsT = Aws::Vector<TotalAggregationOption>>
109 TotalOptions& WithTotalAggregationOptions(TotalAggregationOptionsT&& value) { SetTotalAggregationOptions(std::forward<TotalAggregationOptionsT>(value)); return *this;}
110 template<typename TotalAggregationOptionsT = TotalAggregationOption>
111 TotalOptions& AddTotalAggregationOptions(TotalAggregationOptionsT&& value) { m_totalAggregationOptionsHasBeenSet = true; m_totalAggregationOptions.emplace_back(std::forward<TotalAggregationOptionsT>(value)); return *this; }
113 private:
114
115 Visibility m_totalsVisibility{Visibility::NOT_SET};
116 bool m_totalsVisibilityHasBeenSet = false;
117
119 bool m_placementHasBeenSet = false;
120
122 bool m_scrollStatusHasBeenSet = false;
123
124 Aws::String m_customLabel;
125 bool m_customLabelHasBeenSet = false;
126
127 TableCellStyle m_totalCellStyle;
128 bool m_totalCellStyleHasBeenSet = false;
129
130 Aws::Vector<TotalAggregationOption> m_totalAggregationOptions;
131 bool m_totalAggregationOptionsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace QuickSight
136} // namespace Aws
void SetTotalCellStyle(TotalCellStyleT &&value)
AWS_QUICKSIGHT_API TotalOptions(Aws::Utils::Json::JsonView jsonValue)
void SetScrollStatus(TableTotalsScrollStatus value)
const Aws::String & GetCustomLabel() const
TotalOptions & WithScrollStatus(TableTotalsScrollStatus value)
const Aws::Vector< TotalAggregationOption > & GetTotalAggregationOptions() const
TotalOptions & WithTotalCellStyle(TotalCellStyleT &&value)
const TableCellStyle & GetTotalCellStyle() const
TotalOptions & AddTotalAggregationOptions(TotalAggregationOptionsT &&value)
AWS_QUICKSIGHT_API TotalOptions()=default
void SetTotalAggregationOptions(TotalAggregationOptionsT &&value)
TotalOptions & WithCustomLabel(CustomLabelT &&value)
TableTotalsScrollStatus GetScrollStatus() const
AWS_QUICKSIGHT_API TotalOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCustomLabel(CustomLabelT &&value)
void SetTotalsVisibility(Visibility value)
TotalOptions & WithTotalsVisibility(Visibility value)
TotalOptions & WithPlacement(TableTotalsPlacement value)
TotalOptions & WithTotalAggregationOptions(TotalAggregationOptionsT &&value)
TableTotalsPlacement GetPlacement() const
void SetPlacement(TableTotalsPlacement value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue