/*
* 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
{
///
/// Defines a condition under which a trigger fires.
///
public partial class Condition
{
private string _crawlerName;
private CrawlState _crawlState;
private string _jobName;
private LogicalOperator _logicalOperator;
private JobRunState _state;
///
/// Gets and sets the property CrawlerName.
///
/// The name of the crawler to which this condition applies.
///
///
[AWSProperty(Min=1, Max=255)]
public string CrawlerName
{
get { return this._crawlerName; }
set { this._crawlerName = value; }
}
// Check to see if CrawlerName property is set
internal bool IsSetCrawlerName()
{
return this._crawlerName != null;
}
///
/// Gets and sets the property CrawlState.
///
/// The state of the crawler to which this condition applies.
///
///
public CrawlState CrawlState
{
get { return this._crawlState; }
set { this._crawlState = value; }
}
// Check to see if CrawlState property is set
internal bool IsSetCrawlState()
{
return this._crawlState != null;
}
///
/// Gets and sets the property JobName.
///
/// The name of the job whose JobRuns
this condition applies to, and on which
/// this trigger waits.
///
///
[AWSProperty(Min=1, Max=255)]
public string JobName
{
get { return this._jobName; }
set { this._jobName = value; }
}
// Check to see if JobName property is set
internal bool IsSetJobName()
{
return this._jobName != null;
}
///
/// Gets and sets the property LogicalOperator.
///
/// A logical operator.
///
///
public LogicalOperator LogicalOperator
{
get { return this._logicalOperator; }
set { this._logicalOperator = value; }
}
// Check to see if LogicalOperator property is set
internal bool IsSetLogicalOperator()
{
return this._logicalOperator != null;
}
///
/// Gets and sets the property State.
///
/// The condition state. Currently, the only job states that a trigger can listen for
/// are SUCCEEDED
, STOPPED
, FAILED
, and TIMEOUT
.
/// The only crawler states that a trigger can listen for are SUCCEEDED
,
/// FAILED
, and CANCELLED
.
///
///
public JobRunState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
}