AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LegendOptions.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/Visibility.h>
9#include <aws/quicksight/model/LabelOptions.h>
10#include <aws/quicksight/model/LegendPosition.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/quicksight/model/FontConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QuickSight
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_QUICKSIGHT_API LegendOptions() = default;
39 AWS_QUICKSIGHT_API LegendOptions(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API LegendOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline Visibility GetVisibility() const { return m_visibility; }
49 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
50 inline void SetVisibility(Visibility value) { m_visibilityHasBeenSet = true; m_visibility = value; }
51 inline LegendOptions& WithVisibility(Visibility value) { SetVisibility(value); return *this;}
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) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
62 template<typename TitleT = LabelOptions>
63 LegendOptions& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
65
67
73 inline LegendPosition GetPosition() const { return m_position; }
74 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
75 inline void SetPosition(LegendPosition value) { m_positionHasBeenSet = true; m_position = value; }
76 inline LegendOptions& WithPosition(LegendPosition value) { SetPosition(value); return *this;}
78
80
84 inline const Aws::String& GetWidth() const { return m_width; }
85 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
86 template<typename WidthT = Aws::String>
87 void SetWidth(WidthT&& value) { m_widthHasBeenSet = true; m_width = std::forward<WidthT>(value); }
88 template<typename WidthT = Aws::String>
89 LegendOptions& WithWidth(WidthT&& value) { SetWidth(std::forward<WidthT>(value)); return *this;}
91
93
97 inline const Aws::String& GetHeight() const { return m_height; }
98 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
99 template<typename HeightT = Aws::String>
100 void SetHeight(HeightT&& value) { m_heightHasBeenSet = true; m_height = std::forward<HeightT>(value); }
101 template<typename HeightT = Aws::String>
102 LegendOptions& WithHeight(HeightT&& value) { SetHeight(std::forward<HeightT>(value)); return *this;}
104
106
107 inline const FontConfiguration& GetValueFontConfiguration() const { return m_valueFontConfiguration; }
108 inline bool ValueFontConfigurationHasBeenSet() const { return m_valueFontConfigurationHasBeenSet; }
109 template<typename ValueFontConfigurationT = FontConfiguration>
110 void SetValueFontConfiguration(ValueFontConfigurationT&& value) { m_valueFontConfigurationHasBeenSet = true; m_valueFontConfiguration = std::forward<ValueFontConfigurationT>(value); }
111 template<typename ValueFontConfigurationT = FontConfiguration>
112 LegendOptions& WithValueFontConfiguration(ValueFontConfigurationT&& value) { SetValueFontConfiguration(std::forward<ValueFontConfigurationT>(value)); return *this;}
114 private:
115
116 Visibility m_visibility{Visibility::NOT_SET};
117 bool m_visibilityHasBeenSet = false;
118
119 LabelOptions m_title;
120 bool m_titleHasBeenSet = false;
121
123 bool m_positionHasBeenSet = false;
124
125 Aws::String m_width;
126 bool m_widthHasBeenSet = false;
127
128 Aws::String m_height;
129 bool m_heightHasBeenSet = false;
130
131 FontConfiguration m_valueFontConfiguration;
132 bool m_valueFontConfigurationHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace QuickSight
137} // 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