public static interface GetSpotPlacementScoresRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<GetSpotPlacementScoresRequest.Builder,GetSpotPlacementScoresRequest>
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetSpotPlacementScoresRequest.Builder instanceTypes(Collection<String> instanceTypes)
The instance types. We recommend that you specify at least three instance types. If you specify one or two
instance types, or specify variations of a single instance type (for example, an m3.xlarge with
and without instance storage), the returned placement score will always be low.
If you specify InstanceTypes, you can't specify InstanceRequirementsWithMetadata.
instanceTypes - The instance types. We recommend that you specify at least three instance types. If you specify one or
two instance types, or specify variations of a single instance type (for example, an
m3.xlarge with and without instance storage), the returned placement score will always be
low.
If you specify InstanceTypes, you can't specify
InstanceRequirementsWithMetadata.
GetSpotPlacementScoresRequest.Builder instanceTypes(String... instanceTypes)
The instance types. We recommend that you specify at least three instance types. If you specify one or two
instance types, or specify variations of a single instance type (for example, an m3.xlarge with
and without instance storage), the returned placement score will always be low.
If you specify InstanceTypes, you can't specify InstanceRequirementsWithMetadata.
instanceTypes - The instance types. We recommend that you specify at least three instance types. If you specify one or
two instance types, or specify variations of a single instance type (for example, an
m3.xlarge with and without instance storage), the returned placement score will always be
low.
If you specify InstanceTypes, you can't specify
InstanceRequirementsWithMetadata.
GetSpotPlacementScoresRequest.Builder targetCapacity(Integer targetCapacity)
The target capacity.
targetCapacity - The target capacity.GetSpotPlacementScoresRequest.Builder targetCapacityUnitType(String targetCapacityUnitType)
The unit for the target capacity.
Default: units (translates to number of instances)
targetCapacityUnitType - The unit for the target capacity.
Default: units (translates to number of instances)
TargetCapacityUnitType,
TargetCapacityUnitTypeGetSpotPlacementScoresRequest.Builder targetCapacityUnitType(TargetCapacityUnitType targetCapacityUnitType)
The unit for the target capacity.
Default: units (translates to number of instances)
targetCapacityUnitType - The unit for the target capacity.
Default: units (translates to number of instances)
TargetCapacityUnitType,
TargetCapacityUnitTypeGetSpotPlacementScoresRequest.Builder singleAvailabilityZone(Boolean singleAvailabilityZone)
Specify true so that the response returns a list of scored Availability Zones. Otherwise, the
response returns a list of scored Regions.
A list of scored Availability Zones is useful if you want to launch all of your Spot capacity into a single Availability Zone.
singleAvailabilityZone - Specify true so that the response returns a list of scored Availability Zones. Otherwise,
the response returns a list of scored Regions.
A list of scored Availability Zones is useful if you want to launch all of your Spot capacity into a single Availability Zone.
GetSpotPlacementScoresRequest.Builder regionNames(Collection<String> regionNames)
The Regions used to narrow down the list of Regions to be scored. Enter the Region code, for example,
us-east-1.
regionNames - The Regions used to narrow down the list of Regions to be scored. Enter the Region code, for example,
us-east-1.GetSpotPlacementScoresRequest.Builder regionNames(String... regionNames)
The Regions used to narrow down the list of Regions to be scored. Enter the Region code, for example,
us-east-1.
regionNames - The Regions used to narrow down the list of Regions to be scored. Enter the Region code, for example,
us-east-1.GetSpotPlacementScoresRequest.Builder instanceRequirementsWithMetadata(InstanceRequirementsWithMetadataRequest instanceRequirementsWithMetadata)
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify InstanceRequirementsWithMetadata, you can't specify InstanceTypes.
instanceRequirementsWithMetadata - The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify
instance types with those attributes.
If you specify InstanceRequirementsWithMetadata, you can't specify
InstanceTypes.
default GetSpotPlacementScoresRequest.Builder instanceRequirementsWithMetadata(Consumer<InstanceRequirementsWithMetadataRequest.Builder> instanceRequirementsWithMetadata)
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify InstanceRequirementsWithMetadata, you can't specify InstanceTypes.
InstanceRequirementsWithMetadataRequest.Builder
avoiding the need to create one manually via InstanceRequirementsWithMetadataRequest.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to
instanceRequirementsWithMetadata(InstanceRequirementsWithMetadataRequest).instanceRequirementsWithMetadata - a consumer that will call methods on InstanceRequirementsWithMetadataRequest.BuilderinstanceRequirementsWithMetadata(InstanceRequirementsWithMetadataRequest)GetSpotPlacementScoresRequest.Builder maxResults(Integer maxResults)
The maximum number of results to return in a single call. Specify a value between 1 and
1000. The
default value is 1000. To retrieve the remaining results, make another call with
the returned
NextToken value.
maxResults - The maximum number of results to return in a single call. Specify a value between 1 and
1000.
The default value is 1000. To retrieve the remaining results, make another call with
the
returned NextToken value.GetSpotPlacementScoresRequest.Builder nextToken(String nextToken)
The token for the next set of results.
nextToken - The token for the next set of results.GetSpotPlacementScoresRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderGetSpotPlacementScoresRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2022. All rights reserved.