AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GeospatialLayerItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/GeospatialDataSourceItem.h>
11#include <aws/quicksight/model/GeospatialLayerDefinition.h>
12#include <aws/quicksight/model/GeospatialLayerJoinDefinition.h>
13#include <aws/quicksight/model/GeospatialLayerType.h>
14#include <aws/quicksight/model/LayerCustomAction.h>
15#include <aws/quicksight/model/TooltipOptions.h>
16#include <aws/quicksight/model/Visibility.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace QuickSight {
28namespace Model {
29
36 public:
37 AWS_QUICKSIGHT_API GeospatialLayerItem() = default;
38 AWS_QUICKSIGHT_API GeospatialLayerItem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetLayerId() const { return m_layerId; }
47 inline bool LayerIdHasBeenSet() const { return m_layerIdHasBeenSet; }
48 template <typename LayerIdT = Aws::String>
49 void SetLayerId(LayerIdT&& value) {
50 m_layerIdHasBeenSet = true;
51 m_layerId = std::forward<LayerIdT>(value);
52 }
53 template <typename LayerIdT = Aws::String>
54 GeospatialLayerItem& WithLayerId(LayerIdT&& value) {
55 SetLayerId(std::forward<LayerIdT>(value));
56 return *this;
57 }
59
61
64 inline GeospatialLayerType GetLayerType() const { return m_layerType; }
65 inline bool LayerTypeHasBeenSet() const { return m_layerTypeHasBeenSet; }
66 inline void SetLayerType(GeospatialLayerType value) {
67 m_layerTypeHasBeenSet = true;
68 m_layerType = value;
69 }
71 SetLayerType(value);
72 return *this;
73 }
75
77
80 inline const GeospatialDataSourceItem& GetDataSource() const { return m_dataSource; }
81 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
82 template <typename DataSourceT = GeospatialDataSourceItem>
83 void SetDataSource(DataSourceT&& value) {
84 m_dataSourceHasBeenSet = true;
85 m_dataSource = std::forward<DataSourceT>(value);
86 }
87 template <typename DataSourceT = GeospatialDataSourceItem>
88 GeospatialLayerItem& WithDataSource(DataSourceT&& value) {
89 SetDataSource(std::forward<DataSourceT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetLabel() const { return m_label; }
99 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
100 template <typename LabelT = Aws::String>
101 void SetLabel(LabelT&& value) {
102 m_labelHasBeenSet = true;
103 m_label = std::forward<LabelT>(value);
104 }
105 template <typename LabelT = Aws::String>
107 SetLabel(std::forward<LabelT>(value));
108 return *this;
109 }
111
113
116 inline Visibility GetVisibility() const { return m_visibility; }
117 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
118 inline void SetVisibility(Visibility value) {
119 m_visibilityHasBeenSet = true;
120 m_visibility = value;
121 }
123 SetVisibility(value);
124 return *this;
125 }
127
129
132 inline const GeospatialLayerDefinition& GetLayerDefinition() const { return m_layerDefinition; }
133 inline bool LayerDefinitionHasBeenSet() const { return m_layerDefinitionHasBeenSet; }
134 template <typename LayerDefinitionT = GeospatialLayerDefinition>
135 void SetLayerDefinition(LayerDefinitionT&& value) {
136 m_layerDefinitionHasBeenSet = true;
137 m_layerDefinition = std::forward<LayerDefinitionT>(value);
138 }
139 template <typename LayerDefinitionT = GeospatialLayerDefinition>
140 GeospatialLayerItem& WithLayerDefinition(LayerDefinitionT&& value) {
141 SetLayerDefinition(std::forward<LayerDefinitionT>(value));
142 return *this;
143 }
145
147
148 inline const TooltipOptions& GetTooltip() const { return m_tooltip; }
149 inline bool TooltipHasBeenSet() const { return m_tooltipHasBeenSet; }
150 template <typename TooltipT = TooltipOptions>
151 void SetTooltip(TooltipT&& value) {
152 m_tooltipHasBeenSet = true;
153 m_tooltip = std::forward<TooltipT>(value);
154 }
155 template <typename TooltipT = TooltipOptions>
156 GeospatialLayerItem& WithTooltip(TooltipT&& value) {
157 SetTooltip(std::forward<TooltipT>(value));
158 return *this;
159 }
161
163
166 inline const GeospatialLayerJoinDefinition& GetJoinDefinition() const { return m_joinDefinition; }
167 inline bool JoinDefinitionHasBeenSet() const { return m_joinDefinitionHasBeenSet; }
168 template <typename JoinDefinitionT = GeospatialLayerJoinDefinition>
169 void SetJoinDefinition(JoinDefinitionT&& value) {
170 m_joinDefinitionHasBeenSet = true;
171 m_joinDefinition = std::forward<JoinDefinitionT>(value);
172 }
173 template <typename JoinDefinitionT = GeospatialLayerJoinDefinition>
174 GeospatialLayerItem& WithJoinDefinition(JoinDefinitionT&& value) {
175 SetJoinDefinition(std::forward<JoinDefinitionT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Vector<LayerCustomAction>& GetActions() const { return m_actions; }
185 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
186 template <typename ActionsT = Aws::Vector<LayerCustomAction>>
187 void SetActions(ActionsT&& value) {
188 m_actionsHasBeenSet = true;
189 m_actions = std::forward<ActionsT>(value);
190 }
191 template <typename ActionsT = Aws::Vector<LayerCustomAction>>
192 GeospatialLayerItem& WithActions(ActionsT&& value) {
193 SetActions(std::forward<ActionsT>(value));
194 return *this;
195 }
196 template <typename ActionsT = LayerCustomAction>
197 GeospatialLayerItem& AddActions(ActionsT&& value) {
198 m_actionsHasBeenSet = true;
199 m_actions.emplace_back(std::forward<ActionsT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_layerId;
205
207
208 GeospatialDataSourceItem m_dataSource;
209
210 Aws::String m_label;
211
212 Visibility m_visibility{Visibility::NOT_SET};
213
214 GeospatialLayerDefinition m_layerDefinition;
215
216 TooltipOptions m_tooltip;
217
218 GeospatialLayerJoinDefinition m_joinDefinition;
219
221 bool m_layerIdHasBeenSet = false;
222 bool m_layerTypeHasBeenSet = false;
223 bool m_dataSourceHasBeenSet = false;
224 bool m_labelHasBeenSet = false;
225 bool m_visibilityHasBeenSet = false;
226 bool m_layerDefinitionHasBeenSet = false;
227 bool m_tooltipHasBeenSet = false;
228 bool m_joinDefinitionHasBeenSet = false;
229 bool m_actionsHasBeenSet = false;
230};
231
232} // namespace Model
233} // namespace QuickSight
234} // namespace Aws
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
GeospatialLayerItem & WithDataSource(DataSourceT &&value)
AWS_QUICKSIGHT_API GeospatialLayerItem()=default
GeospatialLayerItem & WithLayerDefinition(LayerDefinitionT &&value)
void SetJoinDefinition(JoinDefinitionT &&value)
const GeospatialLayerDefinition & GetLayerDefinition() const
void SetLayerDefinition(LayerDefinitionT &&value)
const GeospatialDataSourceItem & GetDataSource() const
GeospatialLayerItem & WithJoinDefinition(JoinDefinitionT &&value)
GeospatialLayerItem & WithActions(ActionsT &&value)
GeospatialLayerItem & WithTooltip(TooltipT &&value)
const GeospatialLayerJoinDefinition & GetJoinDefinition() const
GeospatialLayerItem & WithLayerId(LayerIdT &&value)
GeospatialLayerItem & WithLayerType(GeospatialLayerType value)
AWS_QUICKSIGHT_API GeospatialLayerItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLayerType(GeospatialLayerType value)
GeospatialLayerItem & WithLabel(LabelT &&value)
AWS_QUICKSIGHT_API GeospatialLayerItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< LayerCustomAction > & GetActions() const
GeospatialLayerItem & AddActions(ActionsT &&value)
GeospatialLayerItem & WithVisibility(Visibility value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue