/*
* 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
{
///
/// The structure used to create and update a partition.
///
public partial class PartitionInput
{
private DateTime? _lastAccessTime;
private DateTime? _lastAnalyzedTime;
private Dictionary _parameters = new Dictionary();
private StorageDescriptor _storageDescriptor;
private List _values = new List();
///
/// 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 Values.
///
/// The values of the partition. Although this parameter is not required by the SDK, you
/// must specify this parameter for a valid input.
///
///
///
/// The values for the keys for the new partition must be passed as an array of String
/// objects that must be ordered in the same order as the partition keys appearing in
/// the Amazon S3 prefix. Otherwise Glue will add the values to the wrong keys.
///
///
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;
}
}
}