Interface PutTimeOffBalanceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ConnectSchedulingRequest.Builder,CopyableBuilder<PutTimeOffBalanceRequest.Builder,,PutTimeOffBalanceRequest> SdkBuilder<PutTimeOffBalanceRequest.Builder,,PutTimeOffBalanceRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutTimeOffBalanceRequest
@Mutable
@NotThreadSafe
public static interface PutTimeOffBalanceRequest.Builder
extends ConnectSchedulingRequest.Builder, SdkPojo, CopyableBuilder<PutTimeOffBalanceRequest.Builder,PutTimeOffBalanceRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PutTimeOffBalanceRequest.Builderbalance(Consumer<Duration.Builder> balance) The new time off balance for the user and activity.The new time off balance for the user and activity.instanceId(String instanceId) The identifier of the Connect Customer instance.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.shiftActivityId(String shiftActivityId) The identifier of the shift activity that the balance applies to.The identifier of the user whose balance is being updated.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.connectscheduling.model.ConnectSchedulingRequest.Builder
buildMethods 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
-
instanceId
The identifier of the Connect Customer instance. This can be the ID or the ARN of the instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
- Parameters:
instanceId- The identifier of the Connect Customer instance. This can be the ID or the ARN of the instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userId
The identifier of the user whose balance is being updated. This can be the ID or the ARN of the user.
- Parameters:
userId- The identifier of the user whose balance is being updated. This can be the ID or the ARN of the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shiftActivityId
The identifier of the shift activity that the balance applies to. This can be the ID or the ARN of the shift activity.
- Parameters:
shiftActivityId- The identifier of the shift activity that the balance applies to. This can be the ID or the ARN of the shift activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
balance
The new time off balance for the user and activity. It replaces the existing balance.
- Parameters:
balance- The new time off balance for the user and activity. It replaces the existing balance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
balance
The new time off balance for the user and activity. It replaces the existing balance.
This is a convenience method that creates an instance of theDuration.Builderavoiding the need to create one manually viaDuration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobalance(Duration).- Parameters:
balance- a consumer that will call methods onDuration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PutTimeOffBalanceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutTimeOffBalanceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-