AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
LegendOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/FontConfiguration.h>
10#include <aws/quicksight/model/LabelOptions.h>
11#include <aws/quicksight/model/LegendPosition.h>
12#include <aws/quicksight/model/Visibility.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight {
24namespace Model {
25
32 public:
33 AWS_QUICKSIGHT_API LegendOptions() = default;
34 AWS_QUICKSIGHT_API LegendOptions(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API LegendOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline Visibility GetVisibility() const { return m_visibility; }
43 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
44 inline void SetVisibility(Visibility value) {
45 m_visibilityHasBeenSet = true;
46 m_visibility = value;
47 }
49 SetVisibility(value);
50 return *this;
51 }
53
55
58 inline const LabelOptions& GetTitle() const { return m_title; }
59 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
60 template <typename TitleT = LabelOptions>
61 void SetTitle(TitleT&& value) {
62 m_titleHasBeenSet = true;
63 m_title = std::forward<TitleT>(value);
64 }
65 template <typename TitleT = LabelOptions>
66 LegendOptions& WithTitle(TitleT&& value) {
67 SetTitle(std::forward<TitleT>(value));
68 return *this;
69 }
71
73
79 inline LegendPosition GetPosition() const { return m_position; }
80 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
81 inline void SetPosition(LegendPosition value) {
82 m_positionHasBeenSet = true;
83 m_position = value;
84 }
86 SetPosition(value);
87 return *this;
88 }
90
92
96 inline const Aws::String& GetWidth() const { return m_width; }
97 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
98 template <typename WidthT = Aws::String>
99 void SetWidth(WidthT&& value) {
100 m_widthHasBeenSet = true;
101 m_width = std::forward<WidthT>(value);
102 }
103 template <typename WidthT = Aws::String>
104 LegendOptions& WithWidth(WidthT&& value) {
105 SetWidth(std::forward<WidthT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetHeight() const { return m_height; }
116 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
117 template <typename HeightT = Aws::String>
118 void SetHeight(HeightT&& value) {
119 m_heightHasBeenSet = true;
120 m_height = std::forward<HeightT>(value);
121 }
122 template <typename HeightT = Aws::String>
123 LegendOptions& WithHeight(HeightT&& value) {
124 SetHeight(std::forward<HeightT>(value));
125 return *this;
126 }
128
130
131 inline const FontConfiguration& GetValueFontConfiguration() const { return m_valueFontConfiguration; }
132 inline bool ValueFontConfigurationHasBeenSet() const { return m_valueFontConfigurationHasBeenSet; }
133 template <typename ValueFontConfigurationT = FontConfiguration>
134 void SetValueFontConfiguration(ValueFontConfigurationT&& value) {
135 m_valueFontConfigurationHasBeenSet = true;
136 m_valueFontConfiguration = std::forward<ValueFontConfigurationT>(value);
137 }
138 template <typename ValueFontConfigurationT = FontConfiguration>
139 LegendOptions& WithValueFontConfiguration(ValueFontConfigurationT&& value) {
140 SetValueFontConfiguration(std::forward<ValueFontConfigurationT>(value));
141 return *this;
142 }
144 private:
145 Visibility m_visibility{Visibility::NOT_SET};
146
147 LabelOptions m_title;
148
150
151 Aws::String m_width;
152
153 Aws::String m_height;
154
155 FontConfiguration m_valueFontConfiguration;
156 bool m_visibilityHasBeenSet = false;
157 bool m_titleHasBeenSet = false;
158 bool m_positionHasBeenSet = false;
159 bool m_widthHasBeenSet = false;
160 bool m_heightHasBeenSet = false;
161 bool m_valueFontConfigurationHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace QuickSight
166} // namespace Aws
LegendOptions & WithValueFontConfiguration(ValueFontConfigurationT &&value)
const Aws::String & GetWidth() const
LegendOptions & WithHeight(HeightT &&value)
LegendOptions & WithTitle(TitleT &&value)
LegendOptions & WithWidth(WidthT &&value)
const LabelOptions & GetTitle() const
void SetPosition(LegendPosition value)
const Aws::String & GetHeight() const
void SetValueFontConfiguration(ValueFontConfigurationT &&value)
AWS_QUICKSIGHT_API LegendOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API LegendOptions()=default
AWS_QUICKSIGHT_API LegendOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
LegendOptions & WithPosition(LegendPosition value)
void SetVisibility(Visibility value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
LegendOptions & WithVisibility(Visibility value)
const FontConfiguration & GetValueFontConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue