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