@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.LogicalOperatorpublic String getLogicalOperator()
A logical operator.
LogicalOperatorpublic Condition withLogicalOperator(String logicalOperator)
A logical operator.
logicalOperator - A logical operator.LogicalOperatorpublic Condition withLogicalOperator(LogicalOperator logicalOperator)
A logical operator.
logicalOperator - A logical operator.LogicalOperatorpublic 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.JobRunStatepublic 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.JobRunStatepublic 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.JobRunStatepublic 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.JobRunStatepublic 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.CrawlStatepublic String getCrawlState()
The state of the crawler to which this condition applies.
CrawlStatepublic 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.CrawlStatepublic 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.CrawlStatepublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.