Interface ModifyScheduledActionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ModifyScheduledActionRequest.Builder,ModifyScheduledActionRequest>
,RedshiftRequest.Builder
,SdkBuilder<ModifyScheduledActionRequest.Builder,ModifyScheduledActionRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- ModifyScheduledActionRequest
public static interface ModifyScheduledActionRequest.Builder extends RedshiftRequest.Builder, SdkPojo, CopyableBuilder<ModifyScheduledActionRequest.Builder,ModifyScheduledActionRequest>
-
-
Method Summary
-
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 Detail
-
scheduledActionName
ModifyScheduledActionRequest.Builder scheduledActionName(String 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
ModifyScheduledActionRequest.Builder targetAction(ScheduledActionType 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:
targetAction(ScheduledActionType)
-
schedule
ModifyScheduledActionRequest.Builder schedule(String 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
ModifyScheduledActionRequest.Builder iamRole(String 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
ModifyScheduledActionRequest.Builder scheduledActionDescription(String 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
ModifyScheduledActionRequest.Builder startTime(Instant 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
ModifyScheduledActionRequest.Builder endTime(Instant 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
ModifyScheduledActionRequest.Builder enable(Boolean 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)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
ModifyScheduledActionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-