@Generated(value="software.amazon.awssdk:codegen") public final class GetSpotPlacementScoresRequest extends Ec2Request implements ToCopyableBuilder<GetSpotPlacementScoresRequest.Builder,GetSpotPlacementScoresRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
GetSpotPlacementScoresRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static GetSpotPlacementScoresRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasInstanceTypes()
For responses, this returns true if the service returned a value for the InstanceTypes property.
|
boolean |
hasRegionNames()
For responses, this returns true if the service returned a value for the RegionNames property.
|
InstanceRequirementsWithMetadataRequest |
instanceRequirementsWithMetadata()
The attributes for the instance types.
|
List<String> |
instanceTypes()
The instance types.
|
Integer |
maxResults()
The maximum number of results to return in a single call.
|
String |
nextToken()
The token for the next set of results.
|
List<String> |
regionNames()
The Regions used to narrow down the list of Regions to be scored.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetSpotPlacementScoresRequest.Builder> |
serializableBuilderClass() |
Boolean |
singleAvailabilityZone()
Specify
true so that the response returns a list of scored Availability Zones. |
Integer |
targetCapacity()
The target capacity.
|
TargetCapacityUnitType |
targetCapacityUnitType()
The unit for the target capacity.
|
String |
targetCapacityUnitTypeAsString()
The unit for the target capacity.
|
GetSpotPlacementScoresRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final boolean hasInstanceTypes()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<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
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInstanceTypes()
method.
m3.xlarge
with and without instance storage), the returned placement score will always be
low.
If you specify InstanceTypes
, you can't specify
InstanceRequirementsWithMetadata
.
public final Integer targetCapacity()
The target capacity.
public final TargetCapacityUnitType targetCapacityUnitType()
The unit for the target capacity.
Default: units
(translates to number of instances)
If the service returns an enum value that is not available in the current SDK version,
targetCapacityUnitType
will return TargetCapacityUnitType.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from targetCapacityUnitTypeAsString()
.
Default: units
(translates to number of instances)
TargetCapacityUnitType
public final String targetCapacityUnitTypeAsString()
The unit for the target capacity.
Default: units
(translates to number of instances)
If the service returns an enum value that is not available in the current SDK version,
targetCapacityUnitType
will return TargetCapacityUnitType.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from targetCapacityUnitTypeAsString()
.
Default: units
(translates to number of instances)
TargetCapacityUnitType
public final 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.
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.
public final boolean hasRegionNames()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> regionNames()
The Regions used to narrow down the list of Regions to be scored. Enter the Region code, for example,
us-east-1
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRegionNames()
method.
us-east-1
.public final 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
.
If you specify InstanceRequirementsWithMetadata
, you can't specify
InstanceTypes
.
public final 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.
NextToken
value.public final String nextToken()
The token for the next set of results.
public GetSpotPlacementScoresRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<GetSpotPlacementScoresRequest.Builder,GetSpotPlacementScoresRequest>
toBuilder
in class Ec2Request
public static GetSpotPlacementScoresRequest.Builder builder()
public static Class<? extends GetSpotPlacementScoresRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2022. All rights reserved.