AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
GradientStop.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace QuickSight {
20namespace Model {
21
28 public:
29 AWS_QUICKSIGHT_API GradientStop() = default;
30 AWS_QUICKSIGHT_API GradientStop(Aws::Utils::Json::JsonView jsonValue);
31 AWS_QUICKSIGHT_API GradientStop& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline double GetGradientOffset() const { return m_gradientOffset; }
39 inline bool GradientOffsetHasBeenSet() const { return m_gradientOffsetHasBeenSet; }
40 inline void SetGradientOffset(double value) {
41 m_gradientOffsetHasBeenSet = true;
42 m_gradientOffset = value;
43 }
44 inline GradientStop& WithGradientOffset(double value) {
45 SetGradientOffset(value);
46 return *this;
47 }
49
51
54 inline double GetDataValue() const { return m_dataValue; }
55 inline bool DataValueHasBeenSet() const { return m_dataValueHasBeenSet; }
56 inline void SetDataValue(double value) {
57 m_dataValueHasBeenSet = true;
58 m_dataValue = value;
59 }
60 inline GradientStop& WithDataValue(double value) {
61 SetDataValue(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetColor() const { return m_color; }
71 inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; }
72 template <typename ColorT = Aws::String>
73 void SetColor(ColorT&& value) {
74 m_colorHasBeenSet = true;
75 m_color = std::forward<ColorT>(value);
76 }
77 template <typename ColorT = Aws::String>
78 GradientStop& WithColor(ColorT&& value) {
79 SetColor(std::forward<ColorT>(value));
80 return *this;
81 }
83 private:
84 double m_gradientOffset{0.0};
85
86 double m_dataValue{0.0};
87
88 Aws::String m_color;
89 bool m_gradientOffsetHasBeenSet = false;
90 bool m_dataValueHasBeenSet = false;
91 bool m_colorHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace QuickSight
96} // namespace Aws
GradientStop & WithGradientOffset(double value)
AWS_QUICKSIGHT_API GradientStop()=default
AWS_QUICKSIGHT_API GradientStop & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API GradientStop(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetColor() const
GradientStop & WithColor(ColorT &&value)
GradientStop & WithDataValue(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue