Interface SpotPrice.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<SpotPrice.Builder,SpotPrice>
,SdkBuilder<SpotPrice.Builder,SpotPrice>
,SdkPojo
- Enclosing class:
- SpotPrice
public static interface SpotPrice.Builder extends SdkPojo, CopyableBuilder<SpotPrice.Builder,SpotPrice>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SpotPrice.Builder
availabilityZone(String availabilityZone)
The Availability Zone.SpotPrice.Builder
instanceType(String instanceType)
The instance type.SpotPrice.Builder
instanceType(InstanceType instanceType)
The instance type.SpotPrice.Builder
productDescription(String productDescription)
A general description of the AMI.SpotPrice.Builder
productDescription(RIProductDescription productDescription)
A general description of the AMI.SpotPrice.Builder
spotPrice(String spotPrice)
The maximum price per unit hour that you are willing to pay for a Spot Instance.SpotPrice.Builder
timestamp(Instant timestamp)
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
availabilityZone
SpotPrice.Builder availabilityZone(String availabilityZone)
The Availability Zone.
- Parameters:
availabilityZone
- The Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
SpotPrice.Builder instanceType(String instanceType)
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceType
,InstanceType
-
instanceType
SpotPrice.Builder instanceType(InstanceType instanceType)
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceType
,InstanceType
-
productDescription
SpotPrice.Builder productDescription(String productDescription)
A general description of the AMI.
- Parameters:
productDescription
- A general description of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RIProductDescription
,RIProductDescription
-
productDescription
SpotPrice.Builder productDescription(RIProductDescription productDescription)
A general description of the AMI.
- Parameters:
productDescription
- A general description of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RIProductDescription
,RIProductDescription
-
spotPrice
SpotPrice.Builder spotPrice(String spotPrice)
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- Parameters:
spotPrice
- The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamp
SpotPrice.Builder timestamp(Instant timestamp)
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Parameters:
timestamp
- The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-