/*
* 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
{
///
/// This is the response object from the GetSchema operation.
///
public partial class GetSchemaResponse : AmazonWebServiceResponse
{
private Compatibility _compatibility;
private string _createdTime;
private DataFormat _dataFormat;
private string _description;
private long? _latestSchemaVersion;
private long? _nextSchemaVersion;
private string _registryArn;
private string _registryName;
private string _schemaArn;
private long? _schemaCheckpoint;
private string _schemaName;
private SchemaStatus _schemaStatus;
private string _updatedTime;
///
/// Gets and sets the property Compatibility.
///
/// The compatibility mode of the schema.
///
///
public Compatibility Compatibility
{
get { return this._compatibility; }
set { this._compatibility = value; }
}
// Check to see if Compatibility property is set
internal bool IsSetCompatibility()
{
return this._compatibility != null;
}
///
/// Gets and sets the property CreatedTime.
///
/// The date and time the schema was created.
///
///
public string CreatedTime
{
get { return this._createdTime; }
set { this._createdTime = value; }
}
// Check to see if CreatedTime property is set
internal bool IsSetCreatedTime()
{
return this._createdTime != null;
}
///
/// Gets and sets the property DataFormat.
///
/// The data format of the schema definition. Currently AVRO
, JSON
/// and PROTOBUF
are supported.
///
///
public DataFormat DataFormat
{
get { return this._dataFormat; }
set { this._dataFormat = value; }
}
// Check to see if DataFormat property is set
internal bool IsSetDataFormat()
{
return this._dataFormat != null;
}
///
/// Gets and sets the property Description.
///
/// A description of schema if specified when created
///
///
[AWSProperty(Min=0, Max=2048)]
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 LatestSchemaVersion.
///
/// The latest version of the schema associated with the returned schema definition.
///
///
[AWSProperty(Min=1, Max=100000)]
public long LatestSchemaVersion
{
get { return this._latestSchemaVersion.GetValueOrDefault(); }
set { this._latestSchemaVersion = value; }
}
// Check to see if LatestSchemaVersion property is set
internal bool IsSetLatestSchemaVersion()
{
return this._latestSchemaVersion.HasValue;
}
///
/// Gets and sets the property NextSchemaVersion.
///
/// The next version of the schema associated with the returned schema definition.
///
///
[AWSProperty(Min=1, Max=100000)]
public long NextSchemaVersion
{
get { return this._nextSchemaVersion.GetValueOrDefault(); }
set { this._nextSchemaVersion = value; }
}
// Check to see if NextSchemaVersion property is set
internal bool IsSetNextSchemaVersion()
{
return this._nextSchemaVersion.HasValue;
}
///
/// Gets and sets the property RegistryArn.
///
/// The Amazon Resource Name (ARN) of the registry.
///
///
[AWSProperty(Min=1, Max=10240)]
public string RegistryArn
{
get { return this._registryArn; }
set { this._registryArn = value; }
}
// Check to see if RegistryArn property is set
internal bool IsSetRegistryArn()
{
return this._registryArn != null;
}
///
/// Gets and sets the property RegistryName.
///
/// The name of the registry.
///
///
[AWSProperty(Min=1, Max=255)]
public string RegistryName
{
get { return this._registryName; }
set { this._registryName = value; }
}
// Check to see if RegistryName property is set
internal bool IsSetRegistryName()
{
return this._registryName != null;
}
///
/// Gets and sets the property SchemaArn.
///
/// The Amazon Resource Name (ARN) of the schema.
///
///
[AWSProperty(Min=1, Max=10240)]
public string SchemaArn
{
get { return this._schemaArn; }
set { this._schemaArn = value; }
}
// Check to see if SchemaArn property is set
internal bool IsSetSchemaArn()
{
return this._schemaArn != null;
}
///
/// Gets and sets the property SchemaCheckpoint.
///
/// The version number of the checkpoint (the last time the compatibility mode was changed).
///
///
[AWSProperty(Min=1, Max=100000)]
public long SchemaCheckpoint
{
get { return this._schemaCheckpoint.GetValueOrDefault(); }
set { this._schemaCheckpoint = value; }
}
// Check to see if SchemaCheckpoint property is set
internal bool IsSetSchemaCheckpoint()
{
return this._schemaCheckpoint.HasValue;
}
///
/// Gets and sets the property SchemaName.
///
/// The name of the schema.
///
///
[AWSProperty(Min=1, Max=255)]
public string SchemaName
{
get { return this._schemaName; }
set { this._schemaName = value; }
}
// Check to see if SchemaName property is set
internal bool IsSetSchemaName()
{
return this._schemaName != null;
}
///
/// Gets and sets the property SchemaStatus.
///
/// The status of the schema.
///
///
public SchemaStatus SchemaStatus
{
get { return this._schemaStatus; }
set { this._schemaStatus = value; }
}
// Check to see if SchemaStatus property is set
internal bool IsSetSchemaStatus()
{
return this._schemaStatus != null;
}
///
/// Gets and sets the property UpdatedTime.
///
/// The date and time the schema was updated.
///
///
public string UpdatedTime
{
get { return this._updatedTime; }
set { this._updatedTime = value; }
}
// Check to see if UpdatedTime property is set
internal bool IsSetUpdatedTime()
{
return this._updatedTime != null;
}
}
}