@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Condition extends Object implements Serializable, Cloneable, StructuredPojo
Defines a condition under which a trigger fires.
Constructor and Description |
---|
Condition() |
Modifier and Type | Method and Description |
---|---|
Condition |
clone() |
boolean |
equals(Object obj) |
String |
getCrawlerName()
The name of the crawler to which this condition applies.
|
String |
getCrawlState()
The state of the crawler to which this condition applies.
|
String |
getJobName()
The name of the job whose
JobRuns this condition applies to, and on which this trigger waits. |
String |
getLogicalOperator()
A logical operator.
|
String |
getState()
The condition state.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCrawlerName(String crawlerName)
The name of the crawler to which this condition applies.
|
void |
setCrawlState(String crawlState)
The state of the crawler to which this condition applies.
|
void |
setJobName(String jobName)
The name of the job whose
JobRuns this condition applies to, and on which this trigger waits. |
void |
setLogicalOperator(String logicalOperator)
A logical operator.
|
void |
setState(String state)
The condition state.
|
String |
toString()
Returns a string representation of this object.
|
Condition |
withCrawlerName(String crawlerName)
The name of the crawler to which this condition applies.
|
Condition |
withCrawlState(CrawlState crawlState)
The state of the crawler to which this condition applies.
|
Condition |
withCrawlState(String crawlState)
The state of the crawler to which this condition applies.
|
Condition |
withJobName(String jobName)
The name of the job whose
JobRuns this condition applies to, and on which this trigger waits. |
Condition |
withLogicalOperator(LogicalOperator logicalOperator)
A logical operator.
|
Condition |
withLogicalOperator(String logicalOperator)
A logical operator.
|
Condition |
withState(JobRunState state)
The condition state.
|
Condition |
withState(String state)
The condition state.
|
public void setLogicalOperator(String logicalOperator)
A logical operator.
logicalOperator
- A logical operator.LogicalOperator
public String getLogicalOperator()
A logical operator.
LogicalOperator
public Condition withLogicalOperator(String logicalOperator)
A logical operator.
logicalOperator
- A logical operator.LogicalOperator
public Condition withLogicalOperator(LogicalOperator logicalOperator)
A logical operator.
logicalOperator
- A logical operator.LogicalOperator
public void setJobName(String jobName)
The name of the job whose JobRuns
this condition applies to, and on which this trigger waits.
jobName
- The name of the job whose JobRuns
this condition applies to, and on which this trigger waits.public String getJobName()
The name of the job whose JobRuns
this condition applies to, and on which this trigger waits.
JobRuns
this condition applies to, and on which this trigger
waits.public Condition withJobName(String jobName)
The name of the job whose JobRuns
this condition applies to, and on which this trigger waits.
jobName
- The name of the job whose JobRuns
this condition applies to, and on which this trigger waits.public void setState(String 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
.
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
.JobRunState
public String getState()
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
.
SUCCEEDED
, STOPPED
, FAILED
, and TIMEOUT
. The only
crawler states that a trigger can listen for are SUCCEEDED
, FAILED
, and
CANCELLED
.JobRunState
public Condition withState(String 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
.
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
.JobRunState
public Condition withState(JobRunState 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
.
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
.JobRunState
public void setCrawlerName(String crawlerName)
The name of the crawler to which this condition applies.
crawlerName
- The name of the crawler to which this condition applies.public String getCrawlerName()
The name of the crawler to which this condition applies.
public Condition withCrawlerName(String crawlerName)
The name of the crawler to which this condition applies.
crawlerName
- The name of the crawler to which this condition applies.public void setCrawlState(String crawlState)
The state of the crawler to which this condition applies.
crawlState
- The state of the crawler to which this condition applies.CrawlState
public String getCrawlState()
The state of the crawler to which this condition applies.
CrawlState
public Condition withCrawlState(String crawlState)
The state of the crawler to which this condition applies.
crawlState
- The state of the crawler to which this condition applies.CrawlState
public Condition withCrawlState(CrawlState crawlState)
The state of the crawler to which this condition applies.
crawlState
- The state of the crawler to which this condition applies.CrawlState
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.