@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyFleetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyFleetRequest>
NOOP| Constructor and Description |
|---|
ModifyFleetRequest() |
| Modifier and Type | Method and Description |
|---|---|
ModifyFleetRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getContext()
Reserved.
|
Request<ModifyFleetRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getExcessCapacityTerminationPolicy()
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
|
String |
getFleetId()
The ID of the EC2 Fleet.
|
List<FleetLaunchTemplateConfigRequest> |
getLaunchTemplateConfigs()
The launch template and overrides.
|
TargetCapacitySpecificationRequest |
getTargetCapacitySpecification()
The size of the EC2 Fleet.
|
int |
hashCode() |
void |
setContext(String context)
Reserved.
|
void |
setExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
|
void |
setFleetId(String fleetId)
The ID of the EC2 Fleet.
|
void |
setLaunchTemplateConfigs(Collection<FleetLaunchTemplateConfigRequest> launchTemplateConfigs)
The launch template and overrides.
|
void |
setTargetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification)
The size of the EC2 Fleet.
|
String |
toString()
Returns a string representation of this object.
|
ModifyFleetRequest |
withContext(String context)
Reserved.
|
ModifyFleetRequest |
withExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
|
ModifyFleetRequest |
withExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
|
ModifyFleetRequest |
withFleetId(String fleetId)
The ID of the EC2 Fleet.
|
ModifyFleetRequest |
withLaunchTemplateConfigs(Collection<FleetLaunchTemplateConfigRequest> launchTemplateConfigs)
The launch template and overrides.
|
ModifyFleetRequest |
withLaunchTemplateConfigs(FleetLaunchTemplateConfigRequest... launchTemplateConfigs)
The launch template and overrides.
|
ModifyFleetRequest |
withTargetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification)
The size of the EC2 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 total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain.
excessCapacityTerminationPolicy - Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain.
FleetExcessCapacityTerminationPolicypublic String getExcessCapacityTerminationPolicy()
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain.
Supported only for fleets of type maintain.
FleetExcessCapacityTerminationPolicypublic ModifyFleetRequest withExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain.
excessCapacityTerminationPolicy - Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain.
FleetExcessCapacityTerminationPolicypublic ModifyFleetRequest withExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain.
excessCapacityTerminationPolicy - Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain.
FleetExcessCapacityTerminationPolicypublic List<FleetLaunchTemplateConfigRequest> getLaunchTemplateConfigs()
The launch template and overrides.
public void setLaunchTemplateConfigs(Collection<FleetLaunchTemplateConfigRequest> launchTemplateConfigs)
The launch template and overrides.
launchTemplateConfigs - The launch template and overrides.public ModifyFleetRequest withLaunchTemplateConfigs(FleetLaunchTemplateConfigRequest... launchTemplateConfigs)
The launch template and overrides.
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.public ModifyFleetRequest withLaunchTemplateConfigs(Collection<FleetLaunchTemplateConfigRequest> launchTemplateConfigs)
The launch template and overrides.
launchTemplateConfigs - The launch template and overrides.public void setFleetId(String fleetId)
The ID of the EC2 Fleet.
fleetId - The ID of the EC2 Fleet.public String getFleetId()
The ID of the EC2 Fleet.
public ModifyFleetRequest withFleetId(String fleetId)
The ID of the EC2 Fleet.
fleetId - The ID of the EC2 Fleet.public void setTargetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification)
The size of the EC2 Fleet.
targetCapacitySpecification - The size of the EC2 Fleet.public TargetCapacitySpecificationRequest getTargetCapacitySpecification()
The size of the EC2 Fleet.
public ModifyFleetRequest withTargetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification)
The size of the EC2 Fleet.
targetCapacitySpecification - The size of the EC2 Fleet.public void setContext(String context)
Reserved.
context - Reserved.public String getContext()
Reserved.
public ModifyFleetRequest withContext(String context)
Reserved.
context - Reserved.public Request<ModifyFleetRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<ModifyFleetRequest>public String toString()
toString in class ObjectObject.toString()public ModifyFleetRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()