Class Condition
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Condition.Builder,Condition>
Defines a condition under which a trigger fires.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Condition.Builderbuilder()final StringThe name of the crawler to which this condition applies.final CrawlStateThe state of the crawler to which this condition applies.final StringThe state of the crawler to which this condition applies.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringjobName()The name of the job whoseJobRunsthis condition applies to, and on which this trigger waits.final LogicalOperatorA logical operator.final StringA logical operator.static Class<? extends Condition.Builder>final JobRunStatestate()The condition state.final StringThe condition state.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
logicalOperator
A logical operator.
If the service returns an enum value that is not available in the current SDK version,
logicalOperatorwill returnLogicalOperator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlogicalOperatorAsString().- Returns:
- A logical operator.
- See Also:
-
logicalOperatorAsString
A logical operator.
If the service returns an enum value that is not available in the current SDK version,
logicalOperatorwill returnLogicalOperator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlogicalOperatorAsString().- Returns:
- A logical operator.
- See Also:
-
jobName
The name of the job whose
JobRunsthis condition applies to, and on which this trigger waits.- Returns:
- The name of the job whose
JobRunsthis condition applies to, and on which this trigger waits.
-
state
The condition state. Currently, the only job states that a trigger can listen for are
SUCCEEDED,STOPPED,FAILED, andTIMEOUT. The only crawler states that a trigger can listen for areSUCCEEDED,FAILED, andCANCELLED.If the service returns an enum value that is not available in the current SDK version,
statewill returnJobRunState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The condition state. Currently, the only job states that a trigger can listen for are
SUCCEEDED,STOPPED,FAILED, andTIMEOUT. The only crawler states that a trigger can listen for areSUCCEEDED,FAILED, andCANCELLED. - See Also:
-
stateAsString
The condition state. Currently, the only job states that a trigger can listen for are
SUCCEEDED,STOPPED,FAILED, andTIMEOUT. The only crawler states that a trigger can listen for areSUCCEEDED,FAILED, andCANCELLED.If the service returns an enum value that is not available in the current SDK version,
statewill returnJobRunState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The condition state. Currently, the only job states that a trigger can listen for are
SUCCEEDED,STOPPED,FAILED, andTIMEOUT. The only crawler states that a trigger can listen for areSUCCEEDED,FAILED, andCANCELLED. - See Also:
-
crawlerName
The name of the crawler to which this condition applies.
- Returns:
- The name of the crawler to which this condition applies.
-
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,
crawlStatewill returnCrawlState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcrawlStateAsString().- Returns:
- The state of the crawler to which this condition applies.
- See Also:
-
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,
crawlStatewill returnCrawlState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcrawlStateAsString().- Returns:
- The state of the crawler to which this condition applies.
- See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<Condition.Builder,Condition>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-