Interface ScheduleCondition.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ScheduleCondition.Builder,,ScheduleCondition> SdkBuilder<ScheduleCondition.Builder,,ScheduleCondition> SdkPojo
- Enclosing class:
ScheduleCondition
@Mutable
@NotThreadSafe
public static interface ScheduleCondition.Builder
extends SdkPojo, CopyableBuilder<ScheduleCondition.Builder,ScheduleCondition>
-
Method Summary
Modifier and TypeMethodDescriptionexpression(String expression) EventBridge cron or rate expression.default ScheduleCondition.Builderspec(Consumer<ScheduleSpec.Builder> spec) Structured schedule source of truth (cron | timeRange).spec(ScheduleSpec spec) Structured schedule source of truth (cron | timeRange).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
expression
EventBridge cron or rate expression. Required for existing request and response compatibility. For a structured schedule response, this is the expression derived by Backlog.
- Parameters:
expression- EventBridge cron or rate expression. Required for existing request and response compatibility. For a structured schedule response, this is the expression derived by Backlog.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spec
Structured schedule source of truth (cron | timeRange). On CreateTrigger supply exactly one of spec or expression. Present in responses together with the derived expression for structured triggers.
- Parameters:
spec- Structured schedule source of truth (cron | timeRange). On CreateTrigger supply exactly one of spec or expression. Present in responses together with the derived expression for structured triggers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spec
Structured schedule source of truth (cron | timeRange). On CreateTrigger supply exactly one of spec or expression. Present in responses together with the derived expression for structured triggers.
This is a convenience method that creates an instance of theScheduleSpec.Builderavoiding the need to create one manually viaScheduleSpec.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tospec(ScheduleSpec).- Parameters:
spec- a consumer that will call methods onScheduleSpec.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-