AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
TableFieldOption.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/TableFieldURLConfiguration.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 TableFieldOption() = default;
32 AWS_QUICKSIGHT_API TableFieldOption(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetFieldId() const { return m_fieldId; }
41 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
42 template <typename FieldIdT = Aws::String>
43 void SetFieldId(FieldIdT&& value) {
44 m_fieldIdHasBeenSet = true;
45 m_fieldId = std::forward<FieldIdT>(value);
46 }
47 template <typename FieldIdT = Aws::String>
48 TableFieldOption& WithFieldId(FieldIdT&& value) {
49 SetFieldId(std::forward<FieldIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetWidth() const { return m_width; }
59 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
60 template <typename WidthT = Aws::String>
61 void SetWidth(WidthT&& value) {
62 m_widthHasBeenSet = true;
63 m_width = std::forward<WidthT>(value);
64 }
65 template <typename WidthT = Aws::String>
66 TableFieldOption& WithWidth(WidthT&& value) {
67 SetWidth(std::forward<WidthT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetCustomLabel() const { return m_customLabel; }
77 inline bool CustomLabelHasBeenSet() const { return m_customLabelHasBeenSet; }
78 template <typename CustomLabelT = Aws::String>
79 void SetCustomLabel(CustomLabelT&& value) {
80 m_customLabelHasBeenSet = true;
81 m_customLabel = std::forward<CustomLabelT>(value);
82 }
83 template <typename CustomLabelT = Aws::String>
84 TableFieldOption& WithCustomLabel(CustomLabelT&& value) {
85 SetCustomLabel(std::forward<CustomLabelT>(value));
86 return *this;
87 }
89
91
94 inline Visibility GetVisibility() const { return m_visibility; }
95 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
96 inline void SetVisibility(Visibility value) {
97 m_visibilityHasBeenSet = true;
98 m_visibility = value;
99 }
101 SetVisibility(value);
102 return *this;
103 }
105
107
110 inline const TableFieldURLConfiguration& GetURLStyling() const { return m_uRLStyling; }
111 inline bool URLStylingHasBeenSet() const { return m_uRLStylingHasBeenSet; }
112 template <typename URLStylingT = TableFieldURLConfiguration>
113 void SetURLStyling(URLStylingT&& value) {
114 m_uRLStylingHasBeenSet = true;
115 m_uRLStyling = std::forward<URLStylingT>(value);
116 }
117 template <typename URLStylingT = TableFieldURLConfiguration>
118 TableFieldOption& WithURLStyling(URLStylingT&& value) {
119 SetURLStyling(std::forward<URLStylingT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_fieldId;
125
126 Aws::String m_width;
127
128 Aws::String m_customLabel;
129
130 Visibility m_visibility{Visibility::NOT_SET};
131
132 TableFieldURLConfiguration m_uRLStyling;
133 bool m_fieldIdHasBeenSet = false;
134 bool m_widthHasBeenSet = false;
135 bool m_customLabelHasBeenSet = false;
136 bool m_visibilityHasBeenSet = false;
137 bool m_uRLStylingHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace QuickSight
142} // namespace Aws
const TableFieldURLConfiguration & GetURLStyling() const
void SetCustomLabel(CustomLabelT &&value)
const Aws::String & GetCustomLabel() const
AWS_QUICKSIGHT_API TableFieldOption()=default
TableFieldOption & WithFieldId(FieldIdT &&value)
TableFieldOption & WithCustomLabel(CustomLabelT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
TableFieldOption & WithURLStyling(URLStylingT &&value)
AWS_QUICKSIGHT_API TableFieldOption(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFieldId() const
TableFieldOption & WithVisibility(Visibility value)
AWS_QUICKSIGHT_API TableFieldOption & operator=(Aws::Utils::Json::JsonView jsonValue)
TableFieldOption & WithWidth(WidthT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue