/* * 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 { /// /// Represents a slice of table data. /// public partial class Partition { private string _catalogId; private DateTime? _creationTime; private string _databaseName; private DateTime? _lastAccessTime; private DateTime? _lastAnalyzedTime; private Dictionary _parameters = new Dictionary(); private StorageDescriptor _storageDescriptor; private string _tableName; private List _values = new List(); /// /// Gets and sets the property CatalogId. /// /// The ID of the Data Catalog in which the partition resides. /// /// [AWSProperty(Min=1, Max=255)] public string CatalogId { get { return this._catalogId; } set { this._catalogId = value; } } // Check to see if CatalogId property is set internal bool IsSetCatalogId() { return this._catalogId != null; } /// /// Gets and sets the property CreationTime. /// /// The time at which the partition was created. /// /// public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// /// Gets and sets the property DatabaseName. /// /// The name of the catalog database in which to create the partition. /// /// [AWSProperty(Min=1, Max=255)] public string DatabaseName { get { return this._databaseName; } set { this._databaseName = value; } } // Check to see if DatabaseName property is set internal bool IsSetDatabaseName() { return this._databaseName != null; } /// /// Gets and sets the property LastAccessTime. /// /// The last time at which the partition was accessed. /// /// public DateTime LastAccessTime { get { return this._lastAccessTime.GetValueOrDefault(); } set { this._lastAccessTime = value; } } // Check to see if LastAccessTime property is set internal bool IsSetLastAccessTime() { return this._lastAccessTime.HasValue; } /// /// Gets and sets the property LastAnalyzedTime. /// /// The last time at which column statistics were computed for this partition. /// /// public DateTime LastAnalyzedTime { get { return this._lastAnalyzedTime.GetValueOrDefault(); } set { this._lastAnalyzedTime = value; } } // Check to see if LastAnalyzedTime property is set internal bool IsSetLastAnalyzedTime() { return this._lastAnalyzedTime.HasValue; } /// /// Gets and sets the property Parameters. /// /// These key-value pairs define partition parameters. /// /// public Dictionary Parameters { get { return this._parameters; } set { this._parameters = value; } } // Check to see if Parameters property is set internal bool IsSetParameters() { return this._parameters != null && this._parameters.Count > 0; } /// /// Gets and sets the property StorageDescriptor. /// /// Provides information about the physical location where the partition is stored. /// /// public StorageDescriptor StorageDescriptor { get { return this._storageDescriptor; } set { this._storageDescriptor = value; } } // Check to see if StorageDescriptor property is set internal bool IsSetStorageDescriptor() { return this._storageDescriptor != null; } /// /// Gets and sets the property TableName. /// /// The name of the database table in which to create the partition. /// /// [AWSProperty(Min=1, Max=255)] 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 Values. /// /// The values of the partition. /// /// public List Values { get { return this._values; } set { this._values = value; } } // Check to see if Values property is set internal bool IsSetValues() { return this._values != null && this._values.Count > 0; } } }