AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
PivotTableFieldOption.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/Visibility.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
30 public:
31 AWS_QUICKSIGHT_API PivotTableFieldOption() = default;
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>
49 SetFieldId(std::forward<FieldIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCustomLabel() const { return m_customLabel; }
59 inline bool CustomLabelHasBeenSet() const { return m_customLabelHasBeenSet; }
60 template <typename CustomLabelT = Aws::String>
61 void SetCustomLabel(CustomLabelT&& value) {
62 m_customLabelHasBeenSet = true;
63 m_customLabel = std::forward<CustomLabelT>(value);
64 }
65 template <typename CustomLabelT = Aws::String>
66 PivotTableFieldOption& WithCustomLabel(CustomLabelT&& value) {
67 SetCustomLabel(std::forward<CustomLabelT>(value));
68 return *this;
69 }
71
73
76 inline Visibility GetVisibility() const { return m_visibility; }
77 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
78 inline void SetVisibility(Visibility value) {
79 m_visibilityHasBeenSet = true;
80 m_visibility = value;
81 }
83 SetVisibility(value);
84 return *this;
85 }
87 private:
88 Aws::String m_fieldId;
89
90 Aws::String m_customLabel;
91
92 Visibility m_visibility{Visibility::NOT_SET};
93 bool m_fieldIdHasBeenSet = false;
94 bool m_customLabelHasBeenSet = false;
95 bool m_visibilityHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace QuickSight
100} // namespace Aws
PivotTableFieldOption & WithFieldId(FieldIdT &&value)
PivotTableFieldOption & WithCustomLabel(CustomLabelT &&value)
AWS_QUICKSIGHT_API PivotTableFieldOption(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API PivotTableFieldOption & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
PivotTableFieldOption & WithVisibility(Visibility value)
AWS_QUICKSIGHT_API PivotTableFieldOption()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue