Interface EnableAddOnRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<EnableAddOnRequest.Builder,
,EnableAddOnRequest> LightsailRequest.Builder
,SdkBuilder<EnableAddOnRequest.Builder,
,EnableAddOnRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
EnableAddOnRequest
public static interface EnableAddOnRequest.Builder
extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<EnableAddOnRequest.Builder,EnableAddOnRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault EnableAddOnRequest.Builder
addOnRequest
(Consumer<AddOnRequest.Builder> addOnRequest) An array of strings representing the add-on to enable or modify.addOnRequest
(AddOnRequest addOnRequest) An array of strings representing the add-on to enable or modify.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resourceName
(String resourceName) The name of the source resource for which to enable or modify the add-on.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.lightsail.model.LightsailRequest.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
-
resourceName
The name of the source resource for which to enable or modify the add-on.
- Parameters:
resourceName
- The name of the source resource for which to enable or modify the add-on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOnRequest
An array of strings representing the add-on to enable or modify.
- Parameters:
addOnRequest
- An array of strings representing the add-on to enable or modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOnRequest
An array of strings representing the add-on to enable or modify.
This is a convenience method that creates an instance of theAddOnRequest.Builder
avoiding the need to create one manually viaAddOnRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaddOnRequest(AddOnRequest)
.- Parameters:
addOnRequest
- a consumer that will call methods onAddOnRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
EnableAddOnRequest.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
EnableAddOnRequest.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.
-