Interface ApproveTimeOffRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ConnectSchedulingRequest.Builder,CopyableBuilder<ApproveTimeOffRequest.Builder,,ApproveTimeOffRequest> SdkBuilder<ApproveTimeOffRequest.Builder,,ApproveTimeOffRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ApproveTimeOffRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A description recorded with the approval.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.ruleFailureAction(String ruleFailureAction) Controls what happens when a configured rule fails.ruleFailureAction(RuleFailureAction ruleFailureAction) Controls what happens when a configured rule fails.The unique identifier of the time off request to approve.The identifier of the user who the time off request belongs to.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 who the time off request belongs to. This can be the ID or the ARN of the user.
- Parameters:
userId- The identifier of the user who the time off request belongs to. 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.
-
timeOffId
The unique identifier of the time off request to approve. If the time off request doesn't belong to
UserId, the operation returnsResourceNotFoundException.- Parameters:
timeOffId- The unique identifier of the time off request to approve. If the time off request doesn't belong toUserId, the operation returnsResourceNotFoundException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description recorded with the approval.
GetTimeOffdoesn't return it.- Parameters:
description- A description recorded with the approval.GetTimeOffdoesn't return it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleFailureAction
Controls what happens when a configured rule fails.
REJECT, the default, records anERRORand leaves the requestREJECTED.OVERRIDErecords aWARNINGand approves the request, like the Override time off rules option in the Connect Customer admin website.OVERRIDEnever waivesCONFLICTING_TIME_OFF_REQUEST.- Parameters:
ruleFailureAction- Controls what happens when a configured rule fails.REJECT, the default, records anERRORand leaves the requestREJECTED.OVERRIDErecords aWARNINGand approves the request, like the Override time off rules option in the Connect Customer admin website.OVERRIDEnever waivesCONFLICTING_TIME_OFF_REQUEST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleFailureAction
Controls what happens when a configured rule fails.
REJECT, the default, records anERRORand leaves the requestREJECTED.OVERRIDErecords aWARNINGand approves the request, like the Override time off rules option in the Connect Customer admin website.OVERRIDEnever waivesCONFLICTING_TIME_OFF_REQUEST.- Parameters:
ruleFailureAction- Controls what happens when a configured rule fails.REJECT, the default, records anERRORand leaves the requestREJECTED.OVERRIDErecords aWARNINGand approves the request, like the Override time off rules option in the Connect Customer admin website.OVERRIDEnever waivesCONFLICTING_TIME_OFF_REQUEST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ApproveTimeOffRequest.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
ApproveTimeOffRequest.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.
-