AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
FontSize.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/RelativeFontSize.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
29class FontSize {
30 public:
31 AWS_QUICKSIGHT_API FontSize() = default;
32 AWS_QUICKSIGHT_API FontSize(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QUICKSIGHT_API FontSize& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline RelativeFontSize GetRelative() const { return m_relative; }
42 inline bool RelativeHasBeenSet() const { return m_relativeHasBeenSet; }
43 inline void SetRelative(RelativeFontSize value) {
44 m_relativeHasBeenSet = true;
45 m_relative = value;
46 }
48 SetRelative(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAbsolute() const { return m_absolute; }
58 inline bool AbsoluteHasBeenSet() const { return m_absoluteHasBeenSet; }
59 template <typename AbsoluteT = Aws::String>
60 void SetAbsolute(AbsoluteT&& value) {
61 m_absoluteHasBeenSet = true;
62 m_absolute = std::forward<AbsoluteT>(value);
63 }
64 template <typename AbsoluteT = Aws::String>
65 FontSize& WithAbsolute(AbsoluteT&& value) {
66 SetAbsolute(std::forward<AbsoluteT>(value));
67 return *this;
68 }
70 private:
72
73 Aws::String m_absolute;
74 bool m_relativeHasBeenSet = false;
75 bool m_absoluteHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace QuickSight
80} // namespace Aws
AWS_QUICKSIGHT_API FontSize(Aws::Utils::Json::JsonView jsonValue)
FontSize & WithAbsolute(AbsoluteT &&value)
Definition FontSize.h:65
AWS_QUICKSIGHT_API FontSize()=default
FontSize & WithRelative(RelativeFontSize value)
Definition FontSize.h:47
AWS_QUICKSIGHT_API FontSize & operator=(Aws::Utils::Json::JsonView jsonValue)
RelativeFontSize GetRelative() const
Definition FontSize.h:41
void SetAbsolute(AbsoluteT &&value)
Definition FontSize.h:60
void SetRelative(RelativeFontSize value)
Definition FontSize.h:43
const Aws::String & GetAbsolute() const
Definition FontSize.h:57
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue