/*
 * 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 CreateSchema operation.
    /// 
    public partial class CreateSchemaResponse : AmazonWebServiceResponse
    {
        private Compatibility _compatibility;
        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 _schemaVersionId;
        private SchemaVersionStatus _schemaVersionStatus;
        private Dictionary _tags = new Dictionary();
        /// 
        /// Gets and sets the property Compatibility. 
        /// 
        /// The schema compatibility mode.
        /// 
        /// 
        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 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 the 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 SchemaVersionId. 
        /// 
        /// The unique identifier of the first schema version.
        /// 
        /// 
        [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 SchemaVersionStatus. 
        /// 
        /// The status of the first schema version created.
        /// 
        /// 
        public SchemaVersionStatus SchemaVersionStatus
        {
            get { return this._schemaVersionStatus; }
            set { this._schemaVersionStatus = value; }
        }
        // Check to see if SchemaVersionStatus property is set
        internal bool IsSetSchemaVersionStatus()
        {
            return this._schemaVersionStatus != null;
        }
        /// 
        /// Gets and sets the property Tags. 
        /// 
        /// The tags for the schema.
        /// 
        /// 
        [AWSProperty(Min=0, Max=50)]
        public Dictionary Tags
        {
            get { return this._tags; }
            set { this._tags = value; }
        }
        // Check to see if Tags property is set
        internal bool IsSetTags()
        {
            return this._tags != null && this._tags.Count > 0; 
        }
    }
}