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