AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BackendAPIResourceConfig.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/amplifybackend/model/BackendAPIConflictResolution.h>
11#include <aws/amplifybackend/model/BackendAPIAuthType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AmplifyBackend
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_AMPLIFYBACKEND_API BackendAPIResourceConfig();
39 AWS_AMPLIFYBACKEND_API BackendAPIResourceConfig(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<BackendAPIAuthType>& GetAdditionalAuthTypes() const{ return m_additionalAuthTypes; }
49 inline bool AdditionalAuthTypesHasBeenSet() const { return m_additionalAuthTypesHasBeenSet; }
50 inline void SetAdditionalAuthTypes(const Aws::Vector<BackendAPIAuthType>& value) { m_additionalAuthTypesHasBeenSet = true; m_additionalAuthTypes = value; }
51 inline void SetAdditionalAuthTypes(Aws::Vector<BackendAPIAuthType>&& value) { m_additionalAuthTypesHasBeenSet = true; m_additionalAuthTypes = std::move(value); }
54 inline BackendAPIResourceConfig& AddAdditionalAuthTypes(const BackendAPIAuthType& value) { m_additionalAuthTypesHasBeenSet = true; m_additionalAuthTypes.push_back(value); return *this; }
55 inline BackendAPIResourceConfig& AddAdditionalAuthTypes(BackendAPIAuthType&& value) { m_additionalAuthTypesHasBeenSet = true; m_additionalAuthTypes.push_back(std::move(value)); return *this; }
57
59
63 inline const Aws::String& GetApiName() const{ return m_apiName; }
64 inline bool ApiNameHasBeenSet() const { return m_apiNameHasBeenSet; }
65 inline void SetApiName(const Aws::String& value) { m_apiNameHasBeenSet = true; m_apiName = value; }
66 inline void SetApiName(Aws::String&& value) { m_apiNameHasBeenSet = true; m_apiName = std::move(value); }
67 inline void SetApiName(const char* value) { m_apiNameHasBeenSet = true; m_apiName.assign(value); }
68 inline BackendAPIResourceConfig& WithApiName(const Aws::String& value) { SetApiName(value); return *this;}
69 inline BackendAPIResourceConfig& WithApiName(Aws::String&& value) { SetApiName(std::move(value)); return *this;}
70 inline BackendAPIResourceConfig& WithApiName(const char* value) { SetApiName(value); return *this;}
72
74
77 inline const BackendAPIConflictResolution& GetConflictResolution() const{ return m_conflictResolution; }
78 inline bool ConflictResolutionHasBeenSet() const { return m_conflictResolutionHasBeenSet; }
79 inline void SetConflictResolution(const BackendAPIConflictResolution& value) { m_conflictResolutionHasBeenSet = true; m_conflictResolution = value; }
80 inline void SetConflictResolution(BackendAPIConflictResolution&& value) { m_conflictResolutionHasBeenSet = true; m_conflictResolution = std::move(value); }
84
86
90 inline const BackendAPIAuthType& GetDefaultAuthType() const{ return m_defaultAuthType; }
91 inline bool DefaultAuthTypeHasBeenSet() const { return m_defaultAuthTypeHasBeenSet; }
92 inline void SetDefaultAuthType(const BackendAPIAuthType& value) { m_defaultAuthTypeHasBeenSet = true; m_defaultAuthType = value; }
93 inline void SetDefaultAuthType(BackendAPIAuthType&& value) { m_defaultAuthTypeHasBeenSet = true; m_defaultAuthType = std::move(value); }
95 inline BackendAPIResourceConfig& WithDefaultAuthType(BackendAPIAuthType&& value) { SetDefaultAuthType(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetService() const{ return m_service; }
103 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
104 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
105 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
106 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
107 inline BackendAPIResourceConfig& WithService(const Aws::String& value) { SetService(value); return *this;}
108 inline BackendAPIResourceConfig& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
109 inline BackendAPIResourceConfig& WithService(const char* value) { SetService(value); return *this;}
111
113
117 inline const Aws::String& GetTransformSchema() const{ return m_transformSchema; }
118 inline bool TransformSchemaHasBeenSet() const { return m_transformSchemaHasBeenSet; }
119 inline void SetTransformSchema(const Aws::String& value) { m_transformSchemaHasBeenSet = true; m_transformSchema = value; }
120 inline void SetTransformSchema(Aws::String&& value) { m_transformSchemaHasBeenSet = true; m_transformSchema = std::move(value); }
121 inline void SetTransformSchema(const char* value) { m_transformSchemaHasBeenSet = true; m_transformSchema.assign(value); }
122 inline BackendAPIResourceConfig& WithTransformSchema(const Aws::String& value) { SetTransformSchema(value); return *this;}
123 inline BackendAPIResourceConfig& WithTransformSchema(Aws::String&& value) { SetTransformSchema(std::move(value)); return *this;}
124 inline BackendAPIResourceConfig& WithTransformSchema(const char* value) { SetTransformSchema(value); return *this;}
126 private:
127
128 Aws::Vector<BackendAPIAuthType> m_additionalAuthTypes;
129 bool m_additionalAuthTypesHasBeenSet = false;
130
131 Aws::String m_apiName;
132 bool m_apiNameHasBeenSet = false;
133
134 BackendAPIConflictResolution m_conflictResolution;
135 bool m_conflictResolutionHasBeenSet = false;
136
137 BackendAPIAuthType m_defaultAuthType;
138 bool m_defaultAuthTypeHasBeenSet = false;
139
140 Aws::String m_service;
141 bool m_serviceHasBeenSet = false;
142
143 Aws::String m_transformSchema;
144 bool m_transformSchemaHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace AmplifyBackend
149} // namespace Aws
void SetConflictResolution(const BackendAPIConflictResolution &value)
AWS_AMPLIFYBACKEND_API BackendAPIResourceConfig(Aws::Utils::Json::JsonView jsonValue)
BackendAPIResourceConfig & WithAdditionalAuthTypes(Aws::Vector< BackendAPIAuthType > &&value)
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
BackendAPIResourceConfig & WithConflictResolution(const BackendAPIConflictResolution &value)
BackendAPIResourceConfig & WithApiName(const char *value)
BackendAPIResourceConfig & WithConflictResolution(BackendAPIConflictResolution &&value)
void SetConflictResolution(BackendAPIConflictResolution &&value)
BackendAPIResourceConfig & WithService(const Aws::String &value)
BackendAPIResourceConfig & AddAdditionalAuthTypes(BackendAPIAuthType &&value)
BackendAPIResourceConfig & WithTransformSchema(const char *value)
const BackendAPIConflictResolution & GetConflictResolution() const
BackendAPIResourceConfig & WithTransformSchema(Aws::String &&value)
AWS_AMPLIFYBACKEND_API BackendAPIResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< BackendAPIAuthType > & GetAdditionalAuthTypes() const
BackendAPIResourceConfig & WithService(const char *value)
BackendAPIResourceConfig & WithService(Aws::String &&value)
BackendAPIResourceConfig & WithAdditionalAuthTypes(const Aws::Vector< BackendAPIAuthType > &value)
BackendAPIResourceConfig & WithApiName(Aws::String &&value)
BackendAPIResourceConfig & WithDefaultAuthType(const BackendAPIAuthType &value)
BackendAPIResourceConfig & WithApiName(const Aws::String &value)
void SetAdditionalAuthTypes(const Aws::Vector< BackendAPIAuthType > &value)
void SetAdditionalAuthTypes(Aws::Vector< BackendAPIAuthType > &&value)
BackendAPIResourceConfig & WithDefaultAuthType(BackendAPIAuthType &&value)
BackendAPIResourceConfig & WithTransformSchema(const Aws::String &value)
BackendAPIResourceConfig & AddAdditionalAuthTypes(const BackendAPIAuthType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue