/*
* 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 appsync-2017-07-25.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.AppSync.Model
{
///
/// Describes the configuration of a source API. A source API is a GraphQL API that is
/// linked to a merged API. There can be multiple source APIs attached to each merged
/// API. When linked to a merged API, the source API's schema, data sources, and resolvers
/// will be combined with other linked source API data to form a new, singular API.
///
///
///
/// Source APIs can originate from your account or from other accounts via Amazon Web
/// Services Resource Access Manager. For more information about sharing resources from
/// other accounts, see What
/// is Amazon Web Services Resource Access Manager? in the Amazon Web Services
/// Resource Access Manager guide.
///
///
public partial class SourceApiAssociation
{
private string _associationArn;
private string _associationId;
private string _description;
private DateTime? _lastSuccessfulMergeDate;
private string _mergedApiArn;
private string _mergedApiId;
private string _sourceApiArn;
private SourceApiAssociationConfig _sourceApiAssociationConfig;
private SourceApiAssociationStatus _sourceApiAssociationStatus;
private string _sourceApiAssociationStatusDetail;
private string _sourceApiId;
///
/// Gets and sets the property AssociationArn.
///
/// The Amazon Resource Name (ARN) of the source API association.
///
///
public string AssociationArn
{
get { return this._associationArn; }
set { this._associationArn = value; }
}
// Check to see if AssociationArn property is set
internal bool IsSetAssociationArn()
{
return this._associationArn != null;
}
///
/// Gets and sets the property AssociationId.
///
/// The ID generated by the AppSync service for the source API association.
///
///
public string AssociationId
{
get { return this._associationId; }
set { this._associationId = value; }
}
// Check to see if AssociationId property is set
internal bool IsSetAssociationId()
{
return this._associationId != null;
}
///
/// Gets and sets the property Description.
///
/// The description field.
///
///
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property LastSuccessfulMergeDate.
///
/// The datetime value of the last successful merge of the source API association. The
/// result will be in UTC format and your local time zone.
///
///
public DateTime LastSuccessfulMergeDate
{
get { return this._lastSuccessfulMergeDate.GetValueOrDefault(); }
set { this._lastSuccessfulMergeDate = value; }
}
// Check to see if LastSuccessfulMergeDate property is set
internal bool IsSetLastSuccessfulMergeDate()
{
return this._lastSuccessfulMergeDate.HasValue;
}
///
/// Gets and sets the property MergedApiArn.
///
/// The Amazon Resource Name (ARN) of the AppSync Merged API.
///
///
public string MergedApiArn
{
get { return this._mergedApiArn; }
set { this._mergedApiArn = value; }
}
// Check to see if MergedApiArn property is set
internal bool IsSetMergedApiArn()
{
return this._mergedApiArn != null;
}
///
/// Gets and sets the property MergedApiId.
///
/// The ID of the AppSync Merged API.
///
///
public string MergedApiId
{
get { return this._mergedApiId; }
set { this._mergedApiId = value; }
}
// Check to see if MergedApiId property is set
internal bool IsSetMergedApiId()
{
return this._mergedApiId != null;
}
///
/// Gets and sets the property SourceApiArn.
///
/// The Amazon Resource Name (ARN) of the AppSync source API.
///
///
public string SourceApiArn
{
get { return this._sourceApiArn; }
set { this._sourceApiArn = value; }
}
// Check to see if SourceApiArn property is set
internal bool IsSetSourceApiArn()
{
return this._sourceApiArn != null;
}
///
/// Gets and sets the property SourceApiAssociationConfig.
///
/// The SourceApiAssociationConfig
object data.
///
///
public SourceApiAssociationConfig SourceApiAssociationConfig
{
get { return this._sourceApiAssociationConfig; }
set { this._sourceApiAssociationConfig = value; }
}
// Check to see if SourceApiAssociationConfig property is set
internal bool IsSetSourceApiAssociationConfig()
{
return this._sourceApiAssociationConfig != null;
}
///
/// Gets and sets the property SourceApiAssociationStatus.
///
/// The state of the source API association.
///
///
public SourceApiAssociationStatus SourceApiAssociationStatus
{
get { return this._sourceApiAssociationStatus; }
set { this._sourceApiAssociationStatus = value; }
}
// Check to see if SourceApiAssociationStatus property is set
internal bool IsSetSourceApiAssociationStatus()
{
return this._sourceApiAssociationStatus != null;
}
///
/// Gets and sets the property SourceApiAssociationStatusDetail.
///
/// The detailed message related to the current state of the source API association.
///
///
public string SourceApiAssociationStatusDetail
{
get { return this._sourceApiAssociationStatusDetail; }
set { this._sourceApiAssociationStatusDetail = value; }
}
// Check to see if SourceApiAssociationStatusDetail property is set
internal bool IsSetSourceApiAssociationStatusDetail()
{
return this._sourceApiAssociationStatusDetail != null;
}
///
/// Gets and sets the property SourceApiId.
///
/// The ID of the AppSync source API.
///
///
public string SourceApiId
{
get { return this._sourceApiId; }
set { this._sourceApiId = value; }
}
// Check to see if SourceApiId property is set
internal bool IsSetSourceApiId()
{
return this._sourceApiId != null;
}
}
}