AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
SheetImage.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/ImageCustomAction.h>
11#include <aws/quicksight/model/ImageInteractionOptions.h>
12#include <aws/quicksight/model/SheetImageScalingConfiguration.h>
13#include <aws/quicksight/model/SheetImageSource.h>
14#include <aws/quicksight/model/SheetImageTooltipConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QuickSight {
26namespace Model {
27
34 public:
35 AWS_QUICKSIGHT_API SheetImage() = default;
36 AWS_QUICKSIGHT_API SheetImage(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API SheetImage& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetSheetImageId() const { return m_sheetImageId; }
45 inline bool SheetImageIdHasBeenSet() const { return m_sheetImageIdHasBeenSet; }
46 template <typename SheetImageIdT = Aws::String>
47 void SetSheetImageId(SheetImageIdT&& value) {
48 m_sheetImageIdHasBeenSet = true;
49 m_sheetImageId = std::forward<SheetImageIdT>(value);
50 }
51 template <typename SheetImageIdT = Aws::String>
52 SheetImage& WithSheetImageId(SheetImageIdT&& value) {
53 SetSheetImageId(std::forward<SheetImageIdT>(value));
54 return *this;
55 }
57
59
62 inline const SheetImageSource& GetSource() const { return m_source; }
63 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
64 template <typename SourceT = SheetImageSource>
65 void SetSource(SourceT&& value) {
66 m_sourceHasBeenSet = true;
67 m_source = std::forward<SourceT>(value);
68 }
69 template <typename SourceT = SheetImageSource>
70 SheetImage& WithSource(SourceT&& value) {
71 SetSource(std::forward<SourceT>(value));
72 return *this;
73 }
75
77
80 inline const SheetImageScalingConfiguration& GetScaling() const { return m_scaling; }
81 inline bool ScalingHasBeenSet() const { return m_scalingHasBeenSet; }
82 template <typename ScalingT = SheetImageScalingConfiguration>
83 void SetScaling(ScalingT&& value) {
84 m_scalingHasBeenSet = true;
85 m_scaling = std::forward<ScalingT>(value);
86 }
87 template <typename ScalingT = SheetImageScalingConfiguration>
88 SheetImage& WithScaling(ScalingT&& value) {
89 SetScaling(std::forward<ScalingT>(value));
90 return *this;
91 }
93
95
98 inline const SheetImageTooltipConfiguration& GetTooltip() const { return m_tooltip; }
99 inline bool TooltipHasBeenSet() const { return m_tooltipHasBeenSet; }
100 template <typename TooltipT = SheetImageTooltipConfiguration>
101 void SetTooltip(TooltipT&& value) {
102 m_tooltipHasBeenSet = true;
103 m_tooltip = std::forward<TooltipT>(value);
104 }
105 template <typename TooltipT = SheetImageTooltipConfiguration>
106 SheetImage& WithTooltip(TooltipT&& value) {
107 SetTooltip(std::forward<TooltipT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetImageContentAltText() const { return m_imageContentAltText; }
117 inline bool ImageContentAltTextHasBeenSet() const { return m_imageContentAltTextHasBeenSet; }
118 template <typename ImageContentAltTextT = Aws::String>
119 void SetImageContentAltText(ImageContentAltTextT&& value) {
120 m_imageContentAltTextHasBeenSet = true;
121 m_imageContentAltText = std::forward<ImageContentAltTextT>(value);
122 }
123 template <typename ImageContentAltTextT = Aws::String>
124 SheetImage& WithImageContentAltText(ImageContentAltTextT&& value) {
125 SetImageContentAltText(std::forward<ImageContentAltTextT>(value));
126 return *this;
127 }
129
131
134 inline const ImageInteractionOptions& GetInteractions() const { return m_interactions; }
135 inline bool InteractionsHasBeenSet() const { return m_interactionsHasBeenSet; }
136 template <typename InteractionsT = ImageInteractionOptions>
137 void SetInteractions(InteractionsT&& value) {
138 m_interactionsHasBeenSet = true;
139 m_interactions = std::forward<InteractionsT>(value);
140 }
141 template <typename InteractionsT = ImageInteractionOptions>
142 SheetImage& WithInteractions(InteractionsT&& value) {
143 SetInteractions(std::forward<InteractionsT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Vector<ImageCustomAction>& GetActions() const { return m_actions; }
153 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
154 template <typename ActionsT = Aws::Vector<ImageCustomAction>>
155 void SetActions(ActionsT&& value) {
156 m_actionsHasBeenSet = true;
157 m_actions = std::forward<ActionsT>(value);
158 }
159 template <typename ActionsT = Aws::Vector<ImageCustomAction>>
160 SheetImage& WithActions(ActionsT&& value) {
161 SetActions(std::forward<ActionsT>(value));
162 return *this;
163 }
164 template <typename ActionsT = ImageCustomAction>
165 SheetImage& AddActions(ActionsT&& value) {
166 m_actionsHasBeenSet = true;
167 m_actions.emplace_back(std::forward<ActionsT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_sheetImageId;
173
174 SheetImageSource m_source;
175
177
179
180 Aws::String m_imageContentAltText;
181
182 ImageInteractionOptions m_interactions;
183
185 bool m_sheetImageIdHasBeenSet = false;
186 bool m_sourceHasBeenSet = false;
187 bool m_scalingHasBeenSet = false;
188 bool m_tooltipHasBeenSet = false;
189 bool m_imageContentAltTextHasBeenSet = false;
190 bool m_interactionsHasBeenSet = false;
191 bool m_actionsHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace QuickSight
196} // namespace Aws
void SetTooltip(TooltipT &&value)
Definition SheetImage.h:101
AWS_QUICKSIGHT_API SheetImage(Aws::Utils::Json::JsonView jsonValue)
SheetImage & WithTooltip(TooltipT &&value)
Definition SheetImage.h:106
void SetInteractions(InteractionsT &&value)
Definition SheetImage.h:137
SheetImage & WithImageContentAltText(ImageContentAltTextT &&value)
Definition SheetImage.h:124
void SetSheetImageId(SheetImageIdT &&value)
Definition SheetImage.h:47
SheetImage & WithActions(ActionsT &&value)
Definition SheetImage.h:160
const SheetImageScalingConfiguration & GetScaling() const
Definition SheetImage.h:80
const Aws::String & GetImageContentAltText() const
Definition SheetImage.h:116
SheetImage & WithScaling(ScalingT &&value)
Definition SheetImage.h:88
const SheetImageSource & GetSource() const
Definition SheetImage.h:62
AWS_QUICKSIGHT_API SheetImage & operator=(Aws::Utils::Json::JsonView jsonValue)
const ImageInteractionOptions & GetInteractions() const
Definition SheetImage.h:134
const Aws::String & GetSheetImageId() const
Definition SheetImage.h:44
SheetImage & WithSource(SourceT &&value)
Definition SheetImage.h:70
void SetSource(SourceT &&value)
Definition SheetImage.h:65
SheetImage & AddActions(ActionsT &&value)
Definition SheetImage.h:165
AWS_QUICKSIGHT_API SheetImage()=default
const SheetImageTooltipConfiguration & GetTooltip() const
Definition SheetImage.h:98
const Aws::Vector< ImageCustomAction > & GetActions() const
Definition SheetImage.h:152
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetActions(ActionsT &&value)
Definition SheetImage.h:155
void SetScaling(ScalingT &&value)
Definition SheetImage.h:83
void SetImageContentAltText(ImageContentAltTextT &&value)
Definition SheetImage.h:119
SheetImage & WithInteractions(InteractionsT &&value)
Definition SheetImage.h:142
SheetImage & WithSheetImageId(SheetImageIdT &&value)
Definition SheetImage.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue