/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifybackend-2020-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AmplifyBackend.Model
{
///
/// The resource config for the data model, configured as a part of the Amplify project.
///
public partial class BackendAPIResourceConfig
{
private List _additionalAuthTypes = new List();
private string _apiName;
private BackendAPIConflictResolution _conflictResolution;
private BackendAPIAuthType _defaultAuthType;
private string _service;
private string _transformSchema;
///
/// Gets and sets the property AdditionalAuthTypes.
///
/// Additional authentication methods used to interact with your data models.
///
///
public List AdditionalAuthTypes
{
get { return this._additionalAuthTypes; }
set { this._additionalAuthTypes = value; }
}
// Check to see if AdditionalAuthTypes property is set
internal bool IsSetAdditionalAuthTypes()
{
return this._additionalAuthTypes != null && this._additionalAuthTypes.Count > 0;
}
///
/// Gets and sets the property ApiName.
///
/// The API name used to interact with the data model, configured as a part of your Amplify
/// project.
///
///
public string ApiName
{
get { return this._apiName; }
set { this._apiName = value; }
}
// Check to see if ApiName property is set
internal bool IsSetApiName()
{
return this._apiName != null;
}
///
/// Gets and sets the property ConflictResolution.
///
/// The conflict resolution strategy for your data stored in the data models.
///
///
public BackendAPIConflictResolution ConflictResolution
{
get { return this._conflictResolution; }
set { this._conflictResolution = value; }
}
// Check to see if ConflictResolution property is set
internal bool IsSetConflictResolution()
{
return this._conflictResolution != null;
}
///
/// Gets and sets the property DefaultAuthType.
///
/// The default authentication type for interacting with the configured data models in
/// your Amplify project.
///
///
public BackendAPIAuthType DefaultAuthType
{
get { return this._defaultAuthType; }
set { this._defaultAuthType = value; }
}
// Check to see if DefaultAuthType property is set
internal bool IsSetDefaultAuthType()
{
return this._defaultAuthType != null;
}
///
/// Gets and sets the property Service.
///
/// The service used to provision and interact with the data model.
///
///
public string Service
{
get { return this._service; }
set { this._service = value; }
}
// Check to see if Service property is set
internal bool IsSetService()
{
return this._service != null;
}
///
/// Gets and sets the property TransformSchema.
///
/// The definition of the data model in the annotated transform of the GraphQL schema.
///
///
public string TransformSchema
{
get { return this._transformSchema; }
set { this._transformSchema = value; }
}
// Check to see if TransformSchema property is set
internal bool IsSetTransformSchema()
{
return this._transformSchema != null;
}
}
}