Class EcsMachineImage.Builder
java.lang.Object
software.amazon.awscdk.services.batch.EcsMachineImage.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcsMachineImage>
- Enclosing interface:
EcsMachineImage
@Stability(Stable)
public static final class EcsMachineImage.Builder
extends Object
implements software.amazon.jsii.Builder<EcsMachineImage>
A builder for
EcsMachineImage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.image
(IMachineImage image) Sets the value ofEcsMachineImage.getImage()
imageType
(EcsMachineImageType imageType) Sets the value ofEcsMachineImage.getImageType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
image
Sets the value ofEcsMachineImage.getImage()
- Parameters:
image
- The machine image to use.- Returns:
this
-
imageType
Sets the value ofEcsMachineImage.getImageType()
- Parameters:
imageType
- Tells Batch which instance type to launch this image on.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EcsMachineImage>
- Returns:
- a new instance of
EcsMachineImage
- Throws:
NullPointerException
- if any required attribute was not provided
-