AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
LabelOptions.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/Visibility.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
30 public:
31 AWS_QUICKSIGHT_API LabelOptions() = default;
32 AWS_QUICKSIGHT_API LabelOptions(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QUICKSIGHT_API LabelOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline Visibility GetVisibility() const { return m_visibility; }
41 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
42 inline void SetVisibility(Visibility value) {
43 m_visibilityHasBeenSet = true;
44 m_visibility = value;
45 }
47 SetVisibility(value);
48 return *this;
49 }
51
53
56 inline const FontConfiguration& GetFontConfiguration() const { return m_fontConfiguration; }
57 inline bool FontConfigurationHasBeenSet() const { return m_fontConfigurationHasBeenSet; }
58 template <typename FontConfigurationT = FontConfiguration>
59 void SetFontConfiguration(FontConfigurationT&& value) {
60 m_fontConfigurationHasBeenSet = true;
61 m_fontConfiguration = std::forward<FontConfigurationT>(value);
62 }
63 template <typename FontConfigurationT = FontConfiguration>
64 LabelOptions& WithFontConfiguration(FontConfigurationT&& value) {
65 SetFontConfiguration(std::forward<FontConfigurationT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetCustomLabel() const { return m_customLabel; }
75 inline bool CustomLabelHasBeenSet() const { return m_customLabelHasBeenSet; }
76 template <typename CustomLabelT = Aws::String>
77 void SetCustomLabel(CustomLabelT&& value) {
78 m_customLabelHasBeenSet = true;
79 m_customLabel = std::forward<CustomLabelT>(value);
80 }
81 template <typename CustomLabelT = Aws::String>
82 LabelOptions& WithCustomLabel(CustomLabelT&& value) {
83 SetCustomLabel(std::forward<CustomLabelT>(value));
84 return *this;
85 }
87 private:
88 Visibility m_visibility{Visibility::NOT_SET};
89
90 FontConfiguration m_fontConfiguration;
91
92 Aws::String m_customLabel;
93 bool m_visibilityHasBeenSet = false;
94 bool m_fontConfigurationHasBeenSet = false;
95 bool m_customLabelHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace QuickSight
100} // namespace Aws
void SetFontConfiguration(FontConfigurationT &&value)
LabelOptions & WithVisibility(Visibility value)
const FontConfiguration & GetFontConfiguration() const
AWS_QUICKSIGHT_API LabelOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API LabelOptions()=default
AWS_QUICKSIGHT_API LabelOptions(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCustomLabel() const
LabelOptions & WithCustomLabel(CustomLabelT &&value)
void SetCustomLabel(CustomLabelT &&value)
void SetVisibility(Visibility value)
LabelOptions & WithFontConfiguration(FontConfigurationT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue