AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GradientStop.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_QUICKSIGHT_API GradientStop() = default;
35 AWS_QUICKSIGHT_API GradientStop(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API GradientStop& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline double GetGradientOffset() const { return m_gradientOffset; }
45 inline bool GradientOffsetHasBeenSet() const { return m_gradientOffsetHasBeenSet; }
46 inline void SetGradientOffset(double value) { m_gradientOffsetHasBeenSet = true; m_gradientOffset = value; }
47 inline GradientStop& WithGradientOffset(double value) { SetGradientOffset(value); return *this;}
49
51
54 inline double GetDataValue() const { return m_dataValue; }
55 inline bool DataValueHasBeenSet() const { return m_dataValueHasBeenSet; }
56 inline void SetDataValue(double value) { m_dataValueHasBeenSet = true; m_dataValue = value; }
57 inline GradientStop& WithDataValue(double value) { SetDataValue(value); return *this;}
59
61
64 inline const Aws::String& GetColor() const { return m_color; }
65 inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; }
66 template<typename ColorT = Aws::String>
67 void SetColor(ColorT&& value) { m_colorHasBeenSet = true; m_color = std::forward<ColorT>(value); }
68 template<typename ColorT = Aws::String>
69 GradientStop& WithColor(ColorT&& value) { SetColor(std::forward<ColorT>(value)); return *this;}
71 private:
72
73 double m_gradientOffset{0.0};
74 bool m_gradientOffsetHasBeenSet = false;
75
76 double m_dataValue{0.0};
77 bool m_dataValueHasBeenSet = false;
78
79 Aws::String m_color;
80 bool m_colorHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace QuickSight
85} // 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