/*
* 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 glue-2017-03-31.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.Glue.Model
{
///
/// An object that references a schema stored in the Glue Schema Registry.
///
public partial class SchemaReference
{
private SchemaId _schemaId;
private string _schemaVersionId;
private long? _schemaVersionNumber;
///
/// Gets and sets the property SchemaId.
///
/// A structure that contains schema identity fields. Either this or the SchemaVersionId
/// has to be provided.
///
///
public SchemaId SchemaId
{
get { return this._schemaId; }
set { this._schemaId = value; }
}
// Check to see if SchemaId property is set
internal bool IsSetSchemaId()
{
return this._schemaId != null;
}
///
/// Gets and sets the property SchemaVersionId.
///
/// The unique ID assigned to a version of the schema. Either this or the SchemaId
/// has to be provided.
///
///
[AWSProperty(Min=36, Max=36)]
public string SchemaVersionId
{
get { return this._schemaVersionId; }
set { this._schemaVersionId = value; }
}
// Check to see if SchemaVersionId property is set
internal bool IsSetSchemaVersionId()
{
return this._schemaVersionId != null;
}
///
/// Gets and sets the property SchemaVersionNumber.
///
/// The version number of the schema.
///
///
[AWSProperty(Min=1, Max=100000)]
public long SchemaVersionNumber
{
get { return this._schemaVersionNumber.GetValueOrDefault(); }
set { this._schemaVersionNumber = value; }
}
// Check to see if SchemaVersionNumber property is set
internal bool IsSetSchemaVersionNumber()
{
return this._schemaVersionNumber.HasValue;
}
}
}