public static final class CfnSpotFleet.SpotPlacementProperty.Builder
extends java.lang.Object
CfnSpotFleet.SpotPlacementProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnSpotFleet.SpotPlacementProperty.Builder |
availabilityZone(java.lang.String availabilityZone)
Sets the value of
CfnSpotFleet.SpotPlacementProperty.getAvailabilityZone() |
CfnSpotFleet.SpotPlacementProperty |
build()
Builds the configured instance.
|
CfnSpotFleet.SpotPlacementProperty.Builder |
groupName(java.lang.String groupName)
Sets the value of
CfnSpotFleet.SpotPlacementProperty.getGroupName() |
CfnSpotFleet.SpotPlacementProperty.Builder |
tenancy(java.lang.String tenancy)
Sets the value of
CfnSpotFleet.SpotPlacementProperty.getTenancy() |
public CfnSpotFleet.SpotPlacementProperty.Builder availabilityZone(java.lang.String availabilityZone)
CfnSpotFleet.SpotPlacementProperty.getAvailabilityZone()
availabilityZone
- The Availability Zone.
To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".this
public CfnSpotFleet.SpotPlacementProperty.Builder groupName(java.lang.String groupName)
CfnSpotFleet.SpotPlacementProperty.getGroupName()
groupName
- The name of the placement group.this
public CfnSpotFleet.SpotPlacementProperty.Builder tenancy(java.lang.String tenancy)
CfnSpotFleet.SpotPlacementProperty.getTenancy()
tenancy
- The tenancy of the instance (if the instance is running in a VPC).
An instance with a tenancy of dedicated
runs on single-tenant hardware. The host
tenancy is not supported for Spot Instances.this
public CfnSpotFleet.SpotPlacementProperty build()
CfnSpotFleet.SpotPlacementProperty
java.lang.NullPointerException
- if any required attribute was not provided