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) Indicates whether some other object is "equal to" this one by SDK fields.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.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods 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
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Condition.Builder,Condition> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-