@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()
Creates a shallow clone of this object for all fields except the handler context.
|
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 items to return for this request.
|
String |
getNextToken()
The token returned from a previous paginated request.
|
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 items to return for this request.
|
void |
setNextToken(String nextToken)
The token returned from a previous paginated request.
|
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 items to return for this request.
|
GetSpotPlacementScoresRequest |
withNextToken(String nextToken)
The token returned from a previous paginated request.
|
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, 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, withSdkRequestTimeout
public 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.
targetCapacityUnitType
- The unit for the target capacity.TargetCapacityUnitType
public String getTargetCapacityUnitType()
The unit for the target capacity.
TargetCapacityUnitType
public GetSpotPlacementScoresRequest withTargetCapacityUnitType(String targetCapacityUnitType)
The unit for the target capacity.
targetCapacityUnitType
- The unit for the target capacity.TargetCapacityUnitType
public GetSpotPlacementScoresRequest withTargetCapacityUnitType(TargetCapacityUnitType targetCapacityUnitType)
The unit for the target capacity.
targetCapacityUnitType
- The unit for the target capacity.TargetCapacityUnitType
public 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 items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
maxResults
- The maximum number of items to return for this request. To get the next page of items, make another
request with the token returned in the output. For more information, see Pagination.public Integer getMaxResults()
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
public GetSpotPlacementScoresRequest withMaxResults(Integer maxResults)
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
maxResults
- The maximum number of items to return for this request. To get the next page of items, make another
request with the token returned in the output. For more information, see Pagination.public void setNextToken(String nextToken)
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
nextToken
- The token returned from a previous paginated request. Pagination continues from the end of the items
returned by the previous request.public String getNextToken()
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
public GetSpotPlacementScoresRequest withNextToken(String nextToken)
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
nextToken
- The token returned from a previous paginated request. Pagination continues from the end of the items
returned by the previous request.public Request<GetSpotPlacementScoresRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<GetSpotPlacementScoresRequest>
public String toString()
toString
in class Object
Object.toString()
public GetSpotPlacementScoresRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()