/*
* 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 statement or request for a particular action to occur in a session.
///
public partial class Statement
{
private string _code;
private long? _completedOn;
private int? _id;
private StatementOutput _output;
private double? _progress;
private long? _startedOn;
private StatementState _state;
///
/// Gets and sets the property Code.
///
/// The execution code of the statement.
///
///
public string Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
///
/// Gets and sets the property CompletedOn.
///
/// The unix time and date that the job definition was completed.
///
///
public long CompletedOn
{
get { return this._completedOn.GetValueOrDefault(); }
set { this._completedOn = value; }
}
// Check to see if CompletedOn property is set
internal bool IsSetCompletedOn()
{
return this._completedOn.HasValue;
}
///
/// Gets and sets the property Id.
///
/// The ID of the statement.
///
///
public int Id
{
get { return this._id.GetValueOrDefault(); }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id.HasValue;
}
///
/// Gets and sets the property Output.
///
/// The output in JSON.
///
///
public StatementOutput Output
{
get { return this._output; }
set { this._output = value; }
}
// Check to see if Output property is set
internal bool IsSetOutput()
{
return this._output != null;
}
///
/// Gets and sets the property Progress.
///
/// The code execution progress.
///
///
public double Progress
{
get { return this._progress.GetValueOrDefault(); }
set { this._progress = value; }
}
// Check to see if Progress property is set
internal bool IsSetProgress()
{
return this._progress.HasValue;
}
///
/// Gets and sets the property StartedOn.
///
/// The unix time and date that the job definition was started.
///
///
public long StartedOn
{
get { return this._startedOn.GetValueOrDefault(); }
set { this._startedOn = value; }
}
// Check to see if StartedOn property is set
internal bool IsSetStartedOn()
{
return this._startedOn.HasValue;
}
///
/// Gets and sets the property State.
///
/// The state while request is actioned.
///
///
public StatementState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
}