/*
* 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 period in which a remote Spark runtime environment is running.
///
public partial class Session
{
private SessionCommand _command;
private ConnectionsList _connections;
private DateTime? _createdOn;
private Dictionary _defaultArguments = new Dictionary();
private string _description;
private string _errorMessage;
private string _glueVersion;
private string _id;
private double? _maxCapacity;
private double? _progress;
private string _role;
private string _securityConfiguration;
private SessionStatus _status;
///
/// Gets and sets the property Command.
///
/// The command object.See SessionCommand.
///
///
public SessionCommand Command
{
get { return this._command; }
set { this._command = value; }
}
// Check to see if Command property is set
internal bool IsSetCommand()
{
return this._command != null;
}
///
/// Gets and sets the property Connections.
///
/// The number of connections used for the session.
///
///
public ConnectionsList Connections
{
get { return this._connections; }
set { this._connections = value; }
}
// Check to see if Connections property is set
internal bool IsSetConnections()
{
return this._connections != null;
}
///
/// Gets and sets the property CreatedOn.
///
/// The time and date when the session was created.
///
///
public DateTime CreatedOn
{
get { return this._createdOn.GetValueOrDefault(); }
set { this._createdOn = value; }
}
// Check to see if CreatedOn property is set
internal bool IsSetCreatedOn()
{
return this._createdOn.HasValue;
}
///
/// Gets and sets the property DefaultArguments.
///
/// A map array of key-value pairs. Max is 75 pairs.
///
///
[AWSProperty(Min=0, Max=75)]
public Dictionary DefaultArguments
{
get { return this._defaultArguments; }
set { this._defaultArguments = value; }
}
// Check to see if DefaultArguments property is set
internal bool IsSetDefaultArguments()
{
return this._defaultArguments != null && this._defaultArguments.Count > 0;
}
///
/// Gets and sets the property Description.
///
/// The description of the session.
///
///
[AWSProperty(Min=0, Max=2048)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property ErrorMessage.
///
/// The error message displayed during the session.
///
///
[AWSProperty(Min=0, Max=2048)]
public string ErrorMessage
{
get { return this._errorMessage; }
set { this._errorMessage = value; }
}
// Check to see if ErrorMessage property is set
internal bool IsSetErrorMessage()
{
return this._errorMessage != null;
}
///
/// Gets and sets the property GlueVersion.
///
/// The Glue version determines the versions of Apache Spark and Python that Glue supports.
/// The GlueVersion must be greater than 2.0.
///
///
[AWSProperty(Min=1, Max=255)]
public string GlueVersion
{
get { return this._glueVersion; }
set { this._glueVersion = value; }
}
// Check to see if GlueVersion property is set
internal bool IsSetGlueVersion()
{
return this._glueVersion != null;
}
///
/// Gets and sets the property Id.
///
/// The ID of the session.
///
///
[AWSProperty(Min=1, Max=255)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property MaxCapacity.
///
/// The number of Glue data processing units (DPUs) that can be allocated when the job
/// runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of
/// compute capacity and 16 GB memory.
///
///
public double MaxCapacity
{
get { return this._maxCapacity.GetValueOrDefault(); }
set { this._maxCapacity = value; }
}
// Check to see if MaxCapacity property is set
internal bool IsSetMaxCapacity()
{
return this._maxCapacity.HasValue;
}
///
/// Gets and sets the property Progress.
///
/// The code execution progress of the session.
///
///
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 Role.
///
/// The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
///
///
[AWSProperty(Min=20, Max=2048)]
public string Role
{
get { return this._role; }
set { this._role = value; }
}
// Check to see if Role property is set
internal bool IsSetRole()
{
return this._role != null;
}
///
/// Gets and sets the property SecurityConfiguration.
///
/// The name of the SecurityConfiguration structure to be used with the session.
///
///
[AWSProperty(Min=1, Max=255)]
public string SecurityConfiguration
{
get { return this._securityConfiguration; }
set { this._securityConfiguration = value; }
}
// Check to see if SecurityConfiguration property is set
internal bool IsSetSecurityConfiguration()
{
return this._securityConfiguration != null;
}
///
/// Gets and sets the property Status.
///
/// The session status.
///
///
public SessionStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}