@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifySpotFleetRequestRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifySpotFleetRequestRequest>
Contains the parameters for ModifySpotFleetRequest.
NOOP| Constructor and Description |
|---|
ModifySpotFleetRequestRequest() |
| Modifier and Type | Method and Description |
|---|---|
ModifySpotFleetRequestRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getContext()
Reserved.
|
Request<ModifySpotFleetRequestRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getExcessCapacityTerminationPolicy()
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is
decreased below the current size of the Spot Fleet.
|
List<LaunchTemplateConfig> |
getLaunchTemplateConfigs()
The launch template and overrides.
|
Integer |
getOnDemandTargetCapacity()
The number of On-Demand Instances in the fleet.
|
String |
getSpotFleetRequestId()
The ID of the Spot Fleet request.
|
Integer |
getTargetCapacity()
The size of the fleet.
|
int |
hashCode() |
void |
setContext(String context)
Reserved.
|
void |
setExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is
decreased below the current size of the Spot Fleet.
|
void |
setExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is
decreased below the current size of the Spot Fleet.
|
void |
setLaunchTemplateConfigs(Collection<LaunchTemplateConfig> launchTemplateConfigs)
The launch template and overrides.
|
void |
setOnDemandTargetCapacity(Integer onDemandTargetCapacity)
The number of On-Demand Instances in the fleet.
|
void |
setSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot Fleet request.
|
void |
setTargetCapacity(Integer targetCapacity)
The size of the fleet.
|
String |
toString()
Returns a string representation of this object.
|
ModifySpotFleetRequestRequest |
withContext(String context)
Reserved.
|
ModifySpotFleetRequestRequest |
withExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is
decreased below the current size of the Spot Fleet.
|
ModifySpotFleetRequestRequest |
withExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is
decreased below the current size of the Spot Fleet.
|
ModifySpotFleetRequestRequest |
withLaunchTemplateConfigs(Collection<LaunchTemplateConfig> launchTemplateConfigs)
The launch template and overrides.
|
ModifySpotFleetRequestRequest |
withLaunchTemplateConfigs(LaunchTemplateConfig... launchTemplateConfigs)
The launch template and overrides.
|
ModifySpotFleetRequestRequest |
withOnDemandTargetCapacity(Integer onDemandTargetCapacity)
The number of On-Demand Instances in the fleet.
|
ModifySpotFleetRequestRequest |
withSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot Fleet request.
|
ModifySpotFleetRequestRequest |
withTargetCapacity(Integer targetCapacity)
The size of the fleet.
|
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, withSdkRequestTimeoutpublic void setExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain.
excessCapacityTerminationPolicy - Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request
is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain.
ExcessCapacityTerminationPolicypublic String getExcessCapacityTerminationPolicy()
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain.
Supported only for fleets of type maintain.
ExcessCapacityTerminationPolicypublic ModifySpotFleetRequestRequest withExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain.
excessCapacityTerminationPolicy - Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request
is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain.
ExcessCapacityTerminationPolicypublic void setExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain.
excessCapacityTerminationPolicy - Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request
is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain.
ExcessCapacityTerminationPolicypublic ModifySpotFleetRequestRequest withExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain.
excessCapacityTerminationPolicy - Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request
is decreased below the current size of the Spot Fleet.
Supported only for fleets of type maintain.
ExcessCapacityTerminationPolicypublic List<LaunchTemplateConfig> getLaunchTemplateConfigs()
The launch template and overrides. You can only use this parameter if you specified a launch template (
LaunchTemplateConfigs) in your Spot Fleet request. If you specified
LaunchSpecifications in your Spot Fleet request, then omit this parameter.
LaunchTemplateConfigs) in your Spot Fleet request. If you specified
LaunchSpecifications in your Spot Fleet request, then omit this parameter.public void setLaunchTemplateConfigs(Collection<LaunchTemplateConfig> launchTemplateConfigs)
The launch template and overrides. You can only use this parameter if you specified a launch template (
LaunchTemplateConfigs) in your Spot Fleet request. If you specified
LaunchSpecifications in your Spot Fleet request, then omit this parameter.
launchTemplateConfigs - The launch template and overrides. You can only use this parameter if you specified a launch template (
LaunchTemplateConfigs) in your Spot Fleet request. If you specified
LaunchSpecifications in your Spot Fleet request, then omit this parameter.public ModifySpotFleetRequestRequest withLaunchTemplateConfigs(LaunchTemplateConfig... launchTemplateConfigs)
The launch template and overrides. You can only use this parameter if you specified a launch template (
LaunchTemplateConfigs) in your Spot Fleet request. If you specified
LaunchSpecifications in your Spot Fleet request, then omit this parameter.
NOTE: This method appends the values to the existing list (if any). Use
setLaunchTemplateConfigs(java.util.Collection) or
withLaunchTemplateConfigs(java.util.Collection) if you want to override the existing values.
launchTemplateConfigs - The launch template and overrides. You can only use this parameter if you specified a launch template (
LaunchTemplateConfigs) in your Spot Fleet request. If you specified
LaunchSpecifications in your Spot Fleet request, then omit this parameter.public ModifySpotFleetRequestRequest withLaunchTemplateConfigs(Collection<LaunchTemplateConfig> launchTemplateConfigs)
The launch template and overrides. You can only use this parameter if you specified a launch template (
LaunchTemplateConfigs) in your Spot Fleet request. If you specified
LaunchSpecifications in your Spot Fleet request, then omit this parameter.
launchTemplateConfigs - The launch template and overrides. You can only use this parameter if you specified a launch template (
LaunchTemplateConfigs) in your Spot Fleet request. If you specified
LaunchSpecifications in your Spot Fleet request, then omit this parameter.public void setSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot Fleet request.
spotFleetRequestId - The ID of the Spot Fleet request.public String getSpotFleetRequestId()
The ID of the Spot Fleet request.
public ModifySpotFleetRequestRequest withSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot Fleet request.
spotFleetRequestId - The ID of the Spot Fleet request.public void setTargetCapacity(Integer targetCapacity)
The size of the fleet.
targetCapacity - The size of the fleet.public Integer getTargetCapacity()
The size of the fleet.
public ModifySpotFleetRequestRequest withTargetCapacity(Integer targetCapacity)
The size of the fleet.
targetCapacity - The size of the fleet.public void setOnDemandTargetCapacity(Integer onDemandTargetCapacity)
The number of On-Demand Instances in the fleet.
onDemandTargetCapacity - The number of On-Demand Instances in the fleet.public Integer getOnDemandTargetCapacity()
The number of On-Demand Instances in the fleet.
public ModifySpotFleetRequestRequest withOnDemandTargetCapacity(Integer onDemandTargetCapacity)
The number of On-Demand Instances in the fleet.
onDemandTargetCapacity - The number of On-Demand Instances in the fleet.public void setContext(String context)
Reserved.
context - Reserved.public String getContext()
Reserved.
public ModifySpotFleetRequestRequest withContext(String context)
Reserved.
context - Reserved.public Request<ModifySpotFleetRequestRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<ModifySpotFleetRequestRequest>public String toString()
toString in class ObjectObject.toString()public ModifySpotFleetRequestRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()