/* * 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 redshift-data-2019-12-20.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.RedshiftDataAPIService.Model { /// /// The properties (metadata) of a column. /// public partial class ColumnMetadata { private string _columnDefault; private bool? _isCaseSensitive; private bool? _isCurrency; private bool? _isSigned; private string _label; private int? _length; private string _name; private int? _nullable; private int? _precision; private int? _scale; private string _schemaName; private string _tableName; private string _typeName; /// /// Gets and sets the property ColumnDefault. /// /// The default value of the column. /// /// public string ColumnDefault { get { return this._columnDefault; } set { this._columnDefault = value; } } // Check to see if ColumnDefault property is set internal bool IsSetColumnDefault() { return this._columnDefault != null; } /// /// Gets and sets the property IsCaseSensitive. /// /// A value that indicates whether the column is case-sensitive. /// /// public bool IsCaseSensitive { get { return this._isCaseSensitive.GetValueOrDefault(); } set { this._isCaseSensitive = value; } } // Check to see if IsCaseSensitive property is set internal bool IsSetIsCaseSensitive() { return this._isCaseSensitive.HasValue; } /// /// Gets and sets the property IsCurrency. /// /// A value that indicates whether the column contains currency values. /// /// public bool IsCurrency { get { return this._isCurrency.GetValueOrDefault(); } set { this._isCurrency = value; } } // Check to see if IsCurrency property is set internal bool IsSetIsCurrency() { return this._isCurrency.HasValue; } /// /// Gets and sets the property IsSigned. /// /// A value that indicates whether an integer column is signed. /// /// public bool IsSigned { get { return this._isSigned.GetValueOrDefault(); } set { this._isSigned = value; } } // Check to see if IsSigned property is set internal bool IsSetIsSigned() { return this._isSigned.HasValue; } /// /// Gets and sets the property Label. /// /// The label for the column. /// /// public string Label { get { return this._label; } set { this._label = value; } } // Check to see if Label property is set internal bool IsSetLabel() { return this._label != null; } /// /// Gets and sets the property Length. /// /// The length of the column. /// /// public int Length { get { return this._length.GetValueOrDefault(); } set { this._length = value; } } // Check to see if Length property is set internal bool IsSetLength() { return this._length.HasValue; } /// /// Gets and sets the property Name. /// /// The name of the column. /// /// public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Nullable. /// /// A value that indicates whether the column is nullable. /// /// public int Nullable { get { return this._nullable.GetValueOrDefault(); } set { this._nullable = value; } } // Check to see if Nullable property is set internal bool IsSetNullable() { return this._nullable.HasValue; } /// /// Gets and sets the property Precision. /// /// The precision value of a decimal number column. /// /// public int Precision { get { return this._precision.GetValueOrDefault(); } set { this._precision = value; } } // Check to see if Precision property is set internal bool IsSetPrecision() { return this._precision.HasValue; } /// /// Gets and sets the property Scale. /// /// The scale value of a decimal number column. /// /// public int Scale { get { return this._scale.GetValueOrDefault(); } set { this._scale = value; } } // Check to see if Scale property is set internal bool IsSetScale() { return this._scale.HasValue; } /// /// Gets and sets the property SchemaName. /// /// The name of the schema that contains the table that includes the column. /// /// 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 TableName. /// /// The name of the table that includes the column. /// /// public string TableName { get { return this._tableName; } set { this._tableName = value; } } // Check to see if TableName property is set internal bool IsSetTableName() { return this._tableName != null; } /// /// Gets and sets the property TypeName. /// /// The database-specific data type of the column. /// /// public string TypeName { get { return this._typeName; } set { this._typeName = value; } } // Check to see if TypeName property is set internal bool IsSetTypeName() { return this._typeName != null; } } }