AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ApiConfiguration.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/DataStoreRenderConfig.h>
9#include <aws/amplifyuibuilder/model/GraphQLRenderConfig.h>
10#include <aws/amplifyuibuilder/model/NoApiRenderConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyUIBuilder {
22namespace Model {
23
31 public:
32 AWS_AMPLIFYUIBUILDER_API ApiConfiguration() = default;
33 AWS_AMPLIFYUIBUILDER_API ApiConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYUIBUILDER_API ApiConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const GraphQLRenderConfig& GetGraphQLConfig() const { return m_graphQLConfig; }
42 inline bool GraphQLConfigHasBeenSet() const { return m_graphQLConfigHasBeenSet; }
43 template <typename GraphQLConfigT = GraphQLRenderConfig>
44 void SetGraphQLConfig(GraphQLConfigT&& value) {
45 m_graphQLConfigHasBeenSet = true;
46 m_graphQLConfig = std::forward<GraphQLConfigT>(value);
47 }
48 template <typename GraphQLConfigT = GraphQLRenderConfig>
49 ApiConfiguration& WithGraphQLConfig(GraphQLConfigT&& value) {
50 SetGraphQLConfig(std::forward<GraphQLConfigT>(value));
51 return *this;
52 }
54
56
59 inline const DataStoreRenderConfig& GetDataStoreConfig() const { return m_dataStoreConfig; }
60 inline bool DataStoreConfigHasBeenSet() const { return m_dataStoreConfigHasBeenSet; }
61 template <typename DataStoreConfigT = DataStoreRenderConfig>
62 void SetDataStoreConfig(DataStoreConfigT&& value) {
63 m_dataStoreConfigHasBeenSet = true;
64 m_dataStoreConfig = std::forward<DataStoreConfigT>(value);
65 }
66 template <typename DataStoreConfigT = DataStoreRenderConfig>
67 ApiConfiguration& WithDataStoreConfig(DataStoreConfigT&& value) {
68 SetDataStoreConfig(std::forward<DataStoreConfigT>(value));
69 return *this;
70 }
72
74
77 inline const NoApiRenderConfig& GetNoApiConfig() const { return m_noApiConfig; }
78 inline bool NoApiConfigHasBeenSet() const { return m_noApiConfigHasBeenSet; }
79 template <typename NoApiConfigT = NoApiRenderConfig>
80 void SetNoApiConfig(NoApiConfigT&& value) {
81 m_noApiConfigHasBeenSet = true;
82 m_noApiConfig = std::forward<NoApiConfigT>(value);
83 }
84 template <typename NoApiConfigT = NoApiRenderConfig>
85 ApiConfiguration& WithNoApiConfig(NoApiConfigT&& value) {
86 SetNoApiConfig(std::forward<NoApiConfigT>(value));
87 return *this;
88 }
90 private:
91 GraphQLRenderConfig m_graphQLConfig;
92
93 DataStoreRenderConfig m_dataStoreConfig;
94
95 NoApiRenderConfig m_noApiConfig;
96 bool m_graphQLConfigHasBeenSet = false;
97 bool m_dataStoreConfigHasBeenSet = false;
98 bool m_noApiConfigHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace AmplifyUIBuilder
103} // namespace Aws
AWS_AMPLIFYUIBUILDER_API ApiConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API ApiConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API ApiConfiguration()=default
ApiConfiguration & WithGraphQLConfig(GraphQLConfigT &&value)
const NoApiRenderConfig & GetNoApiConfig() const
ApiConfiguration & WithNoApiConfig(NoApiConfigT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ApiConfiguration & WithDataStoreConfig(DataStoreConfigT &&value)
const GraphQLRenderConfig & GetGraphQLConfig() const
const DataStoreRenderConfig & GetDataStoreConfig() const
void SetDataStoreConfig(DataStoreConfigT &&value)
Aws::Utils::Json::JsonValue JsonValue