AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetColor(const Aws::String& value) { m_colorHasBeenSet = true; m_color = value; }
67 inline void SetColor(Aws::String&& value) { m_colorHasBeenSet = true; m_color = std::move(value); }
68 inline void SetColor(const char* value) { m_colorHasBeenSet = true; m_color.assign(value); }
69 inline GradientStop& WithColor(const Aws::String& value) { SetColor(value); return *this;}
70 inline GradientStop& WithColor(Aws::String&& value) { SetColor(std::move(value)); return *this;}
71 inline GradientStop& WithColor(const char* value) { SetColor(value); return *this;}
73 private:
74
75 double m_gradientOffset;
76 bool m_gradientOffsetHasBeenSet = false;
77
78 double m_dataValue;
79 bool m_dataValueHasBeenSet = false;
80
81 Aws::String m_color;
82 bool m_colorHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace QuickSight
87} // namespace Aws
GradientStop & WithGradientOffset(double value)
GradientStop & WithColor(const char *value)
AWS_QUICKSIGHT_API GradientStop & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetColor(Aws::String &&value)
AWS_QUICKSIGHT_API GradientStop(Aws::Utils::Json::JsonView jsonValue)
void SetColor(const char *value)
void SetColor(const Aws::String &value)
GradientStop & WithColor(Aws::String &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
GradientStop & WithColor(const Aws::String &value)
const Aws::String & GetColor() const
GradientStop & WithDataValue(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue