/*
* 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 athena-2017-05-18.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.Athena.Model
{
///
/// Information about the columns in a query execution result.
///
public partial class ColumnInfo
{
private bool? _caseSensitive;
private string _catalogName;
private string _label;
private string _name;
private ColumnNullable _nullable;
private int? _precision;
private int? _scale;
private string _schemaName;
private string _tableName;
private string _type;
///
/// Gets and sets the property CaseSensitive.
///
/// Indicates whether values in the column are case-sensitive.
///
///
public bool CaseSensitive
{
get { return this._caseSensitive.GetValueOrDefault(); }
set { this._caseSensitive = value; }
}
// Check to see if CaseSensitive property is set
internal bool IsSetCaseSensitive()
{
return this._caseSensitive.HasValue;
}
///
/// Gets and sets the property CatalogName.
///
/// The catalog to which the query results belong.
///
///
public string CatalogName
{
get { return this._catalogName; }
set { this._catalogName = value; }
}
// Check to see if CatalogName property is set
internal bool IsSetCatalogName()
{
return this._catalogName != null;
}
///
/// Gets and sets the property Label.
///
/// A column label.
///
///
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 Name.
///
/// The name of the column.
///
///
[AWSProperty(Required=true)]
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.
///
/// Indicates the column's nullable status.
///
///
public ColumnNullable Nullable
{
get { return this._nullable; }
set { this._nullable = value; }
}
// Check to see if Nullable property is set
internal bool IsSetNullable()
{
return this._nullable != null;
}
///
/// Gets and sets the property Precision.
///
/// For DECIMAL
data types, specifies the total number of digits, up to 38.
/// For performance reasons, we recommend up to 18 digits.
///
///
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.
///
/// For DECIMAL
data types, specifies the total number of digits in the fractional
/// part of the value. Defaults to 0.
///
///
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 schema name (database name) to which the query results belong.
///
///
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 table name for the query results.
///
///
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 Type.
///
/// The data type of the column.
///
///
[AWSProperty(Required=true)]
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}