AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AdditionalAuthTypesT = Aws::Vector<BackendAPIAuthType>>
51 void SetAdditionalAuthTypes(AdditionalAuthTypesT&& value) { m_additionalAuthTypesHasBeenSet = true; m_additionalAuthTypes = std::forward<AdditionalAuthTypesT>(value); }
52 template<typename AdditionalAuthTypesT = Aws::Vector<BackendAPIAuthType>>
53 BackendAPIResourceConfig& WithAdditionalAuthTypes(AdditionalAuthTypesT&& value) { SetAdditionalAuthTypes(std::forward<AdditionalAuthTypesT>(value)); return *this;}
54 template<typename AdditionalAuthTypesT = BackendAPIAuthType>
55 BackendAPIResourceConfig& AddAdditionalAuthTypes(AdditionalAuthTypesT&& value) { m_additionalAuthTypesHasBeenSet = true; m_additionalAuthTypes.emplace_back(std::forward<AdditionalAuthTypesT>(value)); return *this; }
57
59
63 inline const Aws::String& GetApiName() const { return m_apiName; }
64 inline bool ApiNameHasBeenSet() const { return m_apiNameHasBeenSet; }
65 template<typename ApiNameT = Aws::String>
66 void SetApiName(ApiNameT&& value) { m_apiNameHasBeenSet = true; m_apiName = std::forward<ApiNameT>(value); }
67 template<typename ApiNameT = Aws::String>
68 BackendAPIResourceConfig& WithApiName(ApiNameT&& value) { SetApiName(std::forward<ApiNameT>(value)); return *this;}
70
72
75 inline const BackendAPIConflictResolution& GetConflictResolution() const { return m_conflictResolution; }
76 inline bool ConflictResolutionHasBeenSet() const { return m_conflictResolutionHasBeenSet; }
77 template<typename ConflictResolutionT = BackendAPIConflictResolution>
78 void SetConflictResolution(ConflictResolutionT&& value) { m_conflictResolutionHasBeenSet = true; m_conflictResolution = std::forward<ConflictResolutionT>(value); }
79 template<typename ConflictResolutionT = BackendAPIConflictResolution>
80 BackendAPIResourceConfig& WithConflictResolution(ConflictResolutionT&& value) { SetConflictResolution(std::forward<ConflictResolutionT>(value)); return *this;}
82
84
88 inline const BackendAPIAuthType& GetDefaultAuthType() const { return m_defaultAuthType; }
89 inline bool DefaultAuthTypeHasBeenSet() const { return m_defaultAuthTypeHasBeenSet; }
90 template<typename DefaultAuthTypeT = BackendAPIAuthType>
91 void SetDefaultAuthType(DefaultAuthTypeT&& value) { m_defaultAuthTypeHasBeenSet = true; m_defaultAuthType = std::forward<DefaultAuthTypeT>(value); }
92 template<typename DefaultAuthTypeT = BackendAPIAuthType>
93 BackendAPIResourceConfig& WithDefaultAuthType(DefaultAuthTypeT&& value) { SetDefaultAuthType(std::forward<DefaultAuthTypeT>(value)); return *this;}
95
97
100 inline const Aws::String& GetService() const { return m_service; }
101 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
102 template<typename ServiceT = Aws::String>
103 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
104 template<typename ServiceT = Aws::String>
105 BackendAPIResourceConfig& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
107
109
113 inline const Aws::String& GetTransformSchema() const { return m_transformSchema; }
114 inline bool TransformSchemaHasBeenSet() const { return m_transformSchemaHasBeenSet; }
115 template<typename TransformSchemaT = Aws::String>
116 void SetTransformSchema(TransformSchemaT&& value) { m_transformSchemaHasBeenSet = true; m_transformSchema = std::forward<TransformSchemaT>(value); }
117 template<typename TransformSchemaT = Aws::String>
118 BackendAPIResourceConfig& WithTransformSchema(TransformSchemaT&& value) { SetTransformSchema(std::forward<TransformSchemaT>(value)); return *this;}
120 private:
121
122 Aws::Vector<BackendAPIAuthType> m_additionalAuthTypes;
123 bool m_additionalAuthTypesHasBeenSet = false;
124
125 Aws::String m_apiName;
126 bool m_apiNameHasBeenSet = false;
127
128 BackendAPIConflictResolution m_conflictResolution;
129 bool m_conflictResolutionHasBeenSet = false;
130
131 BackendAPIAuthType m_defaultAuthType;
132 bool m_defaultAuthTypeHasBeenSet = false;
133
134 Aws::String m_service;
135 bool m_serviceHasBeenSet = false;
136
137 Aws::String m_transformSchema;
138 bool m_transformSchemaHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace AmplifyBackend
143} // namespace Aws
AWS_AMPLIFYBACKEND_API BackendAPIResourceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
BackendAPIResourceConfig & WithService(ServiceT &&value)
BackendAPIResourceConfig & WithTransformSchema(TransformSchemaT &&value)
const BackendAPIConflictResolution & GetConflictResolution() const
AWS_AMPLIFYBACKEND_API BackendAPIResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
BackendAPIResourceConfig & WithDefaultAuthType(DefaultAuthTypeT &&value)
AWS_AMPLIFYBACKEND_API BackendAPIResourceConfig()=default
const Aws::Vector< BackendAPIAuthType > & GetAdditionalAuthTypes() const
BackendAPIResourceConfig & WithApiName(ApiNameT &&value)
BackendAPIResourceConfig & AddAdditionalAuthTypes(AdditionalAuthTypesT &&value)
BackendAPIResourceConfig & WithAdditionalAuthTypes(AdditionalAuthTypesT &&value)
BackendAPIResourceConfig & WithConflictResolution(ConflictResolutionT &&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