@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetSpotPlacementScoresRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<GetSpotPlacementScoresRequest>
NOOP| Constructor and Description |
|---|
GetSpotPlacementScoresRequest() |
| Modifier and Type | Method and Description |
|---|---|
GetSpotPlacementScoresRequest |
clone() |
boolean |
equals(Object obj) |
Request<GetSpotPlacementScoresRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
InstanceRequirementsWithMetadataRequest |
getInstanceRequirementsWithMetadata()
The attributes for the instance types.
|
List<String> |
getInstanceTypes()
The instance types.
|
Integer |
getMaxResults()
The maximum number of results to return in a single call.
|
String |
getNextToken()
The token for the next set of results.
|
List<String> |
getRegionNames()
The Regions used to narrow down the list of Regions to be scored.
|
Boolean |
getSingleAvailabilityZone()
Specify
true so that the response returns a list of scored Availability Zones. |
Integer |
getTargetCapacity()
The target capacity.
|
String |
getTargetCapacityUnitType()
The unit for the target capacity.
|
int |
hashCode() |
Boolean |
isSingleAvailabilityZone()
Specify
true so that the response returns a list of scored Availability Zones. |
void |
setInstanceRequirementsWithMetadata(InstanceRequirementsWithMetadataRequest instanceRequirementsWithMetadata)
The attributes for the instance types.
|
void |
setInstanceTypes(Collection<String> instanceTypes)
The instance types.
|
void |
setMaxResults(Integer maxResults)
The maximum number of results to return in a single call.
|
void |
setNextToken(String nextToken)
The token for the next set of results.
|
void |
setRegionNames(Collection<String> regionNames)
The Regions used to narrow down the list of Regions to be scored.
|
void |
setSingleAvailabilityZone(Boolean singleAvailabilityZone)
Specify
true so that the response returns a list of scored Availability Zones. |
void |
setTargetCapacity(Integer targetCapacity)
The target capacity.
|
void |
setTargetCapacityUnitType(String targetCapacityUnitType)
The unit for the target capacity.
|
String |
toString()
Returns a string representation of this object.
|
GetSpotPlacementScoresRequest |
withInstanceRequirementsWithMetadata(InstanceRequirementsWithMetadataRequest instanceRequirementsWithMetadata)
The attributes for the instance types.
|
GetSpotPlacementScoresRequest |
withInstanceTypes(Collection<String> instanceTypes)
The instance types.
|
GetSpotPlacementScoresRequest |
withInstanceTypes(String... instanceTypes)
The instance types.
|
GetSpotPlacementScoresRequest |
withMaxResults(Integer maxResults)
The maximum number of results to return in a single call.
|
GetSpotPlacementScoresRequest |
withNextToken(String nextToken)
The token for the next set of results.
|
GetSpotPlacementScoresRequest |
withRegionNames(Collection<String> regionNames)
The Regions used to narrow down the list of Regions to be scored.
|
GetSpotPlacementScoresRequest |
withRegionNames(String... regionNames)
The Regions used to narrow down the list of Regions to be scored.
|
GetSpotPlacementScoresRequest |
withSingleAvailabilityZone(Boolean singleAvailabilityZone)
Specify
true so that the response returns a list of scored Availability Zones. |
GetSpotPlacementScoresRequest |
withTargetCapacity(Integer targetCapacity)
The target capacity.
|
GetSpotPlacementScoresRequest |
withTargetCapacityUnitType(String targetCapacityUnitType)
The unit for the target capacity.
|
GetSpotPlacementScoresRequest |
withTargetCapacityUnitType(TargetCapacityUnitType targetCapacityUnitType)
The unit for the target capacity.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic List<String> getInstanceTypes()
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.
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 void setInstanceTypes(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.
public GetSpotPlacementScoresRequest withInstanceTypes(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.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceTypes(java.util.Collection) or withInstanceTypes(java.util.Collection) if you want
to override the existing values.
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.
public GetSpotPlacementScoresRequest withInstanceTypes(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.
public void setTargetCapacity(Integer targetCapacity)
The target capacity.
targetCapacity - The target capacity.public Integer getTargetCapacity()
The target capacity.
public GetSpotPlacementScoresRequest withTargetCapacity(Integer targetCapacity)
The target capacity.
targetCapacity - The target capacity.public void setTargetCapacityUnitType(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)
TargetCapacityUnitTypepublic String getTargetCapacityUnitType()
The unit for the target capacity.
Default: units (translates to number of instances)
Default: units (translates to number of instances)
TargetCapacityUnitTypepublic GetSpotPlacementScoresRequest withTargetCapacityUnitType(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)
TargetCapacityUnitTypepublic GetSpotPlacementScoresRequest withTargetCapacityUnitType(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)
TargetCapacityUnitTypepublic void setSingleAvailabilityZone(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.
public Boolean getSingleAvailabilityZone()
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 GetSpotPlacementScoresRequest withSingleAvailabilityZone(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.
public Boolean isSingleAvailabilityZone()
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 List<String> getRegionNames()
The Regions used to narrow down the list of Regions to be scored. Enter the Region code, for example,
us-east-1.
us-east-1.public void setRegionNames(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.public GetSpotPlacementScoresRequest withRegionNames(String... regionNames)
The Regions used to narrow down the list of Regions to be scored. Enter the Region code, for example,
us-east-1.
NOTE: This method appends the values to the existing list (if any). Use
setRegionNames(java.util.Collection) or withRegionNames(java.util.Collection) if you want to
override the existing values.
regionNames - The Regions used to narrow down the list of Regions to be scored. Enter the Region code, for example,
us-east-1.public GetSpotPlacementScoresRequest withRegionNames(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.public void setInstanceRequirementsWithMetadata(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.
public InstanceRequirementsWithMetadataRequest getInstanceRequirementsWithMetadata()
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 GetSpotPlacementScoresRequest withInstanceRequirementsWithMetadata(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.
public void setMaxResults(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.public Integer getMaxResults()
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 GetSpotPlacementScoresRequest withMaxResults(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.public void setNextToken(String nextToken)
The token for the next set of results.
nextToken - The token for the next set of results.public String getNextToken()
The token for the next set of results.
public GetSpotPlacementScoresRequest withNextToken(String nextToken)
The token for the next set of results.
nextToken - The token for the next set of results.public Request<GetSpotPlacementScoresRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<GetSpotPlacementScoresRequest>public String toString()
toString in class ObjectObject.toString()public GetSpotPlacementScoresRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2023. All rights reserved.