Class SpotFleetReference.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.SpotFleetReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SpotFleetReference>
- Enclosing interface:
SpotFleetReference
@Stability(Stable)
public static final class SpotFleetReference.Builder
extends Object
implements software.amazon.jsii.Builder<SpotFleetReference>
A builder for
SpotFleetReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.spotFleetId
(String spotFleetId) Sets the value ofSpotFleetReference.getSpotFleetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
spotFleetId
Sets the value ofSpotFleetReference.getSpotFleetId()
- Parameters:
spotFleetId
- The Id of the SpotFleet resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SpotFleetReference>
- Returns:
- a new instance of
SpotFleetReference
- Throws:
NullPointerException
- if any required attribute was not provided
-