Interface ModifyScheduledActionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ModifyScheduledActionRequest.Builder,
,ModifyScheduledActionRequest> RedshiftRequest.Builder
,SdkBuilder<ModifyScheduledActionRequest.Builder,
,ModifyScheduledActionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ModifyScheduledActionRequest
-
Method Summary
Modifier and TypeMethodDescriptionA modified enable flag of the scheduled action.A modified end time of the scheduled action.A different IAM role to assume to run the target action.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.A modified schedule in eitherat( )
orcron( )
format.scheduledActionDescription
(String scheduledActionDescription) A modified description of the scheduled action.scheduledActionName
(String scheduledActionName) The name of the scheduled action to modify.A modified start time of the scheduled action.targetAction
(Consumer<ScheduledActionType.Builder> targetAction) A modified JSON format of the scheduled action.targetAction
(ScheduledActionType targetAction) A modified JSON format of the scheduled action.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.redshift.model.RedshiftRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
scheduledActionName
The name of the scheduled action to modify.
- Parameters:
scheduledActionName
- The name of the scheduled action to modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetAction
A modified JSON format of the scheduled action. For more information about this parameter, see ScheduledAction.
- Parameters:
targetAction
- A modified JSON format of the scheduled action. For more information about this parameter, see ScheduledAction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetAction
default ModifyScheduledActionRequest.Builder targetAction(Consumer<ScheduledActionType.Builder> targetAction) A modified JSON format of the scheduled action. For more information about this parameter, see ScheduledAction.
This is a convenience method that creates an instance of theScheduledActionType.Builder
avoiding the need to create one manually viaScheduledActionType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetAction(ScheduledActionType)
.- Parameters:
targetAction
- a consumer that will call methods onScheduledActionType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
schedule
A modified schedule in either
at( )
orcron( )
format. For more information about this parameter, see ScheduledAction.- Parameters:
schedule
- A modified schedule in eitherat( )
orcron( )
format. For more information about this parameter, see ScheduledAction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamRole
A different IAM role to assume to run the target action. For more information about this parameter, see ScheduledAction.
- Parameters:
iamRole
- A different IAM role to assume to run the target action. For more information about this parameter, see ScheduledAction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduledActionDescription
A modified description of the scheduled action.
- Parameters:
scheduledActionDescription
- A modified description of the scheduled action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
A modified start time of the scheduled action. For more information about this parameter, see ScheduledAction.
- Parameters:
startTime
- A modified start time of the scheduled action. For more information about this parameter, see ScheduledAction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
A modified end time of the scheduled action. For more information about this parameter, see ScheduledAction.
- Parameters:
endTime
- A modified end time of the scheduled action. For more information about this parameter, see ScheduledAction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enable
A modified enable flag of the scheduled action. If true, the scheduled action is active. If false, the scheduled action is disabled.
- Parameters:
enable
- A modified enable flag of the scheduled action. If true, the scheduled action is active. If false, the scheduled action is disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ModifyScheduledActionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ModifyScheduledActionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-