Class LocationPackageOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.LocationPackageOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LocationPackageOptions>
- Enclosing interface:
LocationPackageOptions
@Stability(Stable)
public static final class LocationPackageOptions.Builder
extends Object
implements software.amazon.jsii.Builder<LocationPackageOptions>
A builder for
LocationPackageOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofLocationPackageOptions.getKey()
serviceRestartHandles
(List<? extends InitServiceRestartHandle> serviceRestartHandles) Sets the value ofLocationPackageOptions.getServiceRestartHandles()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofLocationPackageOptions.getKey()
- Parameters:
key
- Identifier key for this package. You can use this to order package installs.- Returns:
this
-
serviceRestartHandles
@Stability(Stable) public LocationPackageOptions.Builder serviceRestartHandles(List<? extends InitServiceRestartHandle> serviceRestartHandles) Sets the value ofLocationPackageOptions.getServiceRestartHandles()
- Parameters:
serviceRestartHandles
- Restart the given service after this command has run.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LocationPackageOptions>
- Returns:
- a new instance of
LocationPackageOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-