@Generated(value="software.amazon.awssdk:codegen") public final class Condition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Condition.Builder,Condition>
Defines a condition under which a trigger fires.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Condition.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Condition.Builder |
builder() |
String |
crawlerName()
The name of the crawler to which this condition applies.
|
CrawlState |
crawlState()
The state of the crawler to which this condition applies.
|
String |
crawlStateAsString()
The state of the crawler to which this condition applies.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
jobName()
The name of the job whose
JobRuns this condition applies to, and on which this trigger waits. |
LogicalOperator |
logicalOperator()
A logical operator.
|
String |
logicalOperatorAsString()
A logical operator.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Condition.Builder> |
serializableBuilderClass() |
JobRunState |
state()
The condition state.
|
String |
stateAsString()
The condition state.
|
Condition.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final LogicalOperator logicalOperator()
A logical operator.
If the service returns an enum value that is not available in the current SDK version, logicalOperator
will return LogicalOperator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from logicalOperatorAsString().
LogicalOperatorpublic final String logicalOperatorAsString()
A logical operator.
If the service returns an enum value that is not available in the current SDK version, logicalOperator
will return LogicalOperator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from logicalOperatorAsString().
LogicalOperatorpublic final String jobName()
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 final 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.
If the service returns an enum value that is not available in the current SDK version, state will return
JobRunState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only
crawler states that a trigger can listen for are SUCCEEDED, FAILED, and
CANCELLED.JobRunStatepublic final String stateAsString()
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.
If the service returns an enum value that is not available in the current SDK version, state will return
JobRunState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only
crawler states that a trigger can listen for are SUCCEEDED, FAILED, and
CANCELLED.JobRunStatepublic final String crawlerName()
The name of the crawler to which this condition applies.
public final CrawlState crawlState()
The state of the crawler to which this condition applies.
If the service returns an enum value that is not available in the current SDK version, crawlState will
return CrawlState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
crawlStateAsString().
CrawlStatepublic final String crawlStateAsString()
The state of the crawler to which this condition applies.
If the service returns an enum value that is not available in the current SDK version, crawlState will
return CrawlState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
crawlStateAsString().
CrawlStatepublic Condition.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Condition.Builder,Condition>public static Condition.Builder builder()
public static Class<? extends Condition.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.