AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
FormatConfiguration.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/DateTimeFormatConfiguration.h>
9#include <aws/quicksight/model/NumberFormatConfiguration.h>
10#include <aws/quicksight/model/StringFormatConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
31 public:
32 AWS_QUICKSIGHT_API FormatConfiguration() = default;
33 AWS_QUICKSIGHT_API FormatConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const StringFormatConfiguration& GetStringFormatConfiguration() const { return m_stringFormatConfiguration; }
42 inline bool StringFormatConfigurationHasBeenSet() const { return m_stringFormatConfigurationHasBeenSet; }
43 template <typename StringFormatConfigurationT = StringFormatConfiguration>
44 void SetStringFormatConfiguration(StringFormatConfigurationT&& value) {
45 m_stringFormatConfigurationHasBeenSet = true;
46 m_stringFormatConfiguration = std::forward<StringFormatConfigurationT>(value);
47 }
48 template <typename StringFormatConfigurationT = StringFormatConfiguration>
49 FormatConfiguration& WithStringFormatConfiguration(StringFormatConfigurationT&& value) {
50 SetStringFormatConfiguration(std::forward<StringFormatConfigurationT>(value));
51 return *this;
52 }
54
56
59 inline const NumberFormatConfiguration& GetNumberFormatConfiguration() const { return m_numberFormatConfiguration; }
60 inline bool NumberFormatConfigurationHasBeenSet() const { return m_numberFormatConfigurationHasBeenSet; }
61 template <typename NumberFormatConfigurationT = NumberFormatConfiguration>
62 void SetNumberFormatConfiguration(NumberFormatConfigurationT&& value) {
63 m_numberFormatConfigurationHasBeenSet = true;
64 m_numberFormatConfiguration = std::forward<NumberFormatConfigurationT>(value);
65 }
66 template <typename NumberFormatConfigurationT = NumberFormatConfiguration>
67 FormatConfiguration& WithNumberFormatConfiguration(NumberFormatConfigurationT&& value) {
68 SetNumberFormatConfiguration(std::forward<NumberFormatConfigurationT>(value));
69 return *this;
70 }
72
74
77 inline const DateTimeFormatConfiguration& GetDateTimeFormatConfiguration() const { return m_dateTimeFormatConfiguration; }
78 inline bool DateTimeFormatConfigurationHasBeenSet() const { return m_dateTimeFormatConfigurationHasBeenSet; }
79 template <typename DateTimeFormatConfigurationT = DateTimeFormatConfiguration>
80 void SetDateTimeFormatConfiguration(DateTimeFormatConfigurationT&& value) {
81 m_dateTimeFormatConfigurationHasBeenSet = true;
82 m_dateTimeFormatConfiguration = std::forward<DateTimeFormatConfigurationT>(value);
83 }
84 template <typename DateTimeFormatConfigurationT = DateTimeFormatConfiguration>
85 FormatConfiguration& WithDateTimeFormatConfiguration(DateTimeFormatConfigurationT&& value) {
86 SetDateTimeFormatConfiguration(std::forward<DateTimeFormatConfigurationT>(value));
87 return *this;
88 }
90 private:
91 StringFormatConfiguration m_stringFormatConfiguration;
92
93 NumberFormatConfiguration m_numberFormatConfiguration;
94
95 DateTimeFormatConfiguration m_dateTimeFormatConfiguration;
96 bool m_stringFormatConfigurationHasBeenSet = false;
97 bool m_numberFormatConfigurationHasBeenSet = false;
98 bool m_dateTimeFormatConfigurationHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace QuickSight
103} // namespace Aws
AWS_QUICKSIGHT_API FormatConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API FormatConfiguration()=default
void SetStringFormatConfiguration(StringFormatConfigurationT &&value)
const NumberFormatConfiguration & GetNumberFormatConfiguration() const
FormatConfiguration & WithDateTimeFormatConfiguration(DateTimeFormatConfigurationT &&value)
const DateTimeFormatConfiguration & GetDateTimeFormatConfiguration() const
void SetNumberFormatConfiguration(NumberFormatConfigurationT &&value)
const StringFormatConfiguration & GetStringFormatConfiguration() const
AWS_QUICKSIGHT_API FormatConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FormatConfiguration & WithNumberFormatConfiguration(NumberFormatConfigurationT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
FormatConfiguration & WithStringFormatConfiguration(StringFormatConfigurationT &&value)
void SetDateTimeFormatConfiguration(DateTimeFormatConfigurationT &&value)
Aws::Utils::Json::JsonValue JsonValue