/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.ec2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; import com.amazonaws.Request; import com.amazonaws.services.ec2.model.transform.RequestSpotInstancesRequestMarshaller; /** *
* Contains the parameters for RequestSpotInstances. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RequestSpotInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest* The user-specified name for a logical grouping of requests. *
** When you specify an Availability Zone group in a Spot Instance request, all Spot Instances in the request are * launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the choice of * Availability Zone is not. The group applies only to requests for Spot Instances of the same instance type. Any * additional Spot Instance requests that are specified with the same Availability Zone group name are launched in * that same Availability Zone, as long as at least one instance from the group is still active. *
** If there is no active instance running in the Availability Zone group that you specify for a new Spot Instance * request (all instances are terminated, the request is expired, or the maximum price you specified falls below * current Spot price), then Amazon EC2 launches the instance in any Availability Zone where the constraint can be * met. Consequently, the subsequent set of Spot Instances could be placed in a different zone from the original * request, even if you specified the same Availability Zone group. *
** Default: Instances are launched in any available Availability Zone. *
*/ private String availabilityZoneGroup; /** ** Deprecated. *
*/ private Integer blockDurationMinutes; /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How * to Ensure Idempotency in the Amazon EC2 User Guide for Linux Instances. *
*/ private String clientToken; /** ** The maximum number of Spot Instances to launch. *
** Default: 1 *
*/ private Integer instanceCount; /** ** The instance launch group. Launch groups are Spot Instances that launch together and terminate together. *
** Default: Instances are launched and terminated individually *
*/ private String launchGroup; /** ** The launch specification. *
*/ private LaunchSpecification launchSpecification; /** ** The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this * parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the * current Spot price. *
** If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify * this parameter. *
** The Spot Instance request type. *
*
* Default: one-time
*
* The start date of the request. If this is a one-time request, the request becomes active at this date and time * and remains active until all instances launch, the request expires, or the request is canceled. If the request is * persistent, the request becomes active at this date and time and remains active until it expires or is canceled. *
** The specified start date and time cannot be equal to the current date and time. You must specify a start date and * time that occurs after the current date and time. *
*/ private java.util.Date validFrom; /** ** The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). *
*
* For a persistent request, the request remains active until the ValidUntil
date and time is reached.
* Otherwise, the request remains active until you cancel it.
*
* For a one-time request, the request remains active until all instances launch, the request is canceled, or the
* ValidUntil
date and time is reached. By default, the request is valid for 7 days from the date the
* request was created.
*
* The key-value pair for tagging the Spot Instance request on creation. The value for ResourceType
* must be spot-instances-request
, otherwise the Spot Instance request fails. To tag the Spot Instance
* request after it has been created, see CreateTags.
*
* The behavior when a Spot Instance is interrupted. The default is terminate
.
*
* If you specify a maximum price, your instances will be interrupted more frequently than if you do not * specify this parameter. *
*/ public RequestSpotInstancesRequest(String spotPrice) { setSpotPrice(spotPrice); } /** ** The user-specified name for a logical grouping of requests. *
** When you specify an Availability Zone group in a Spot Instance request, all Spot Instances in the request are * launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the choice of * Availability Zone is not. The group applies only to requests for Spot Instances of the same instance type. Any * additional Spot Instance requests that are specified with the same Availability Zone group name are launched in * that same Availability Zone, as long as at least one instance from the group is still active. *
** If there is no active instance running in the Availability Zone group that you specify for a new Spot Instance * request (all instances are terminated, the request is expired, or the maximum price you specified falls below * current Spot price), then Amazon EC2 launches the instance in any Availability Zone where the constraint can be * met. Consequently, the subsequent set of Spot Instances could be placed in a different zone from the original * request, even if you specified the same Availability Zone group. *
** Default: Instances are launched in any available Availability Zone. *
* * @param availabilityZoneGroup * The user-specified name for a logical grouping of requests. ** When you specify an Availability Zone group in a Spot Instance request, all Spot Instances in the request * are launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the * choice of Availability Zone is not. The group applies only to requests for Spot Instances of the same * instance type. Any additional Spot Instance requests that are specified with the same Availability Zone * group name are launched in that same Availability Zone, as long as at least one instance from the group is * still active. *
** If there is no active instance running in the Availability Zone group that you specify for a new Spot * Instance request (all instances are terminated, the request is expired, or the maximum price you specified * falls below current Spot price), then Amazon EC2 launches the instance in any Availability Zone where the * constraint can be met. Consequently, the subsequent set of Spot Instances could be placed in a different * zone from the original request, even if you specified the same Availability Zone group. *
** Default: Instances are launched in any available Availability Zone. */ public void setAvailabilityZoneGroup(String availabilityZoneGroup) { this.availabilityZoneGroup = availabilityZoneGroup; } /** *
* The user-specified name for a logical grouping of requests. *
** When you specify an Availability Zone group in a Spot Instance request, all Spot Instances in the request are * launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the choice of * Availability Zone is not. The group applies only to requests for Spot Instances of the same instance type. Any * additional Spot Instance requests that are specified with the same Availability Zone group name are launched in * that same Availability Zone, as long as at least one instance from the group is still active. *
** If there is no active instance running in the Availability Zone group that you specify for a new Spot Instance * request (all instances are terminated, the request is expired, or the maximum price you specified falls below * current Spot price), then Amazon EC2 launches the instance in any Availability Zone where the constraint can be * met. Consequently, the subsequent set of Spot Instances could be placed in a different zone from the original * request, even if you specified the same Availability Zone group. *
** Default: Instances are launched in any available Availability Zone. *
* * @return The user-specified name for a logical grouping of requests. ** When you specify an Availability Zone group in a Spot Instance request, all Spot Instances in the request * are launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the * choice of Availability Zone is not. The group applies only to requests for Spot Instances of the same * instance type. Any additional Spot Instance requests that are specified with the same Availability Zone * group name are launched in that same Availability Zone, as long as at least one instance from the group * is still active. *
** If there is no active instance running in the Availability Zone group that you specify for a new Spot * Instance request (all instances are terminated, the request is expired, or the maximum price you * specified falls below current Spot price), then Amazon EC2 launches the instance in any Availability Zone * where the constraint can be met. Consequently, the subsequent set of Spot Instances could be placed in a * different zone from the original request, even if you specified the same Availability Zone group. *
** Default: Instances are launched in any available Availability Zone. */ public String getAvailabilityZoneGroup() { return this.availabilityZoneGroup; } /** *
* The user-specified name for a logical grouping of requests. *
** When you specify an Availability Zone group in a Spot Instance request, all Spot Instances in the request are * launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the choice of * Availability Zone is not. The group applies only to requests for Spot Instances of the same instance type. Any * additional Spot Instance requests that are specified with the same Availability Zone group name are launched in * that same Availability Zone, as long as at least one instance from the group is still active. *
** If there is no active instance running in the Availability Zone group that you specify for a new Spot Instance * request (all instances are terminated, the request is expired, or the maximum price you specified falls below * current Spot price), then Amazon EC2 launches the instance in any Availability Zone where the constraint can be * met. Consequently, the subsequent set of Spot Instances could be placed in a different zone from the original * request, even if you specified the same Availability Zone group. *
** Default: Instances are launched in any available Availability Zone. *
* * @param availabilityZoneGroup * The user-specified name for a logical grouping of requests. ** When you specify an Availability Zone group in a Spot Instance request, all Spot Instances in the request * are launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the * choice of Availability Zone is not. The group applies only to requests for Spot Instances of the same * instance type. Any additional Spot Instance requests that are specified with the same Availability Zone * group name are launched in that same Availability Zone, as long as at least one instance from the group is * still active. *
** If there is no active instance running in the Availability Zone group that you specify for a new Spot * Instance request (all instances are terminated, the request is expired, or the maximum price you specified * falls below current Spot price), then Amazon EC2 launches the instance in any Availability Zone where the * constraint can be met. Consequently, the subsequent set of Spot Instances could be placed in a different * zone from the original request, even if you specified the same Availability Zone group. *
** Default: Instances are launched in any available Availability Zone. * @return Returns a reference to this object so that method calls can be chained together. */ public RequestSpotInstancesRequest withAvailabilityZoneGroup(String availabilityZoneGroup) { setAvailabilityZoneGroup(availabilityZoneGroup); return this; } /** *
* Deprecated. *
* * @param blockDurationMinutes * Deprecated. */ public void setBlockDurationMinutes(Integer blockDurationMinutes) { this.blockDurationMinutes = blockDurationMinutes; } /** ** Deprecated. *
* * @return Deprecated. */ public Integer getBlockDurationMinutes() { return this.blockDurationMinutes; } /** ** Deprecated. *
* * @param blockDurationMinutes * Deprecated. * @return Returns a reference to this object so that method calls can be chained together. */ public RequestSpotInstancesRequest withBlockDurationMinutes(Integer blockDurationMinutes) { setBlockDurationMinutes(blockDurationMinutes); return this; } /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How * to Ensure Idempotency in the Amazon EC2 User Guide for Linux Instances. *
* * @param clientToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How to Ensure * Idempotency in the Amazon EC2 User Guide for Linux Instances. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How * to Ensure Idempotency in the Amazon EC2 User Guide for Linux Instances. *
* * @return Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How to Ensure * Idempotency in the Amazon EC2 User Guide for Linux Instances. */ public String getClientToken() { return this.clientToken; } /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How * to Ensure Idempotency in the Amazon EC2 User Guide for Linux Instances. *
* * @param clientToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How to Ensure * Idempotency in the Amazon EC2 User Guide for Linux Instances. * @return Returns a reference to this object so that method calls can be chained together. */ public RequestSpotInstancesRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** The maximum number of Spot Instances to launch. *
** Default: 1 *
* * @param instanceCount * The maximum number of Spot Instances to launch. ** Default: 1 */ public void setInstanceCount(Integer instanceCount) { this.instanceCount = instanceCount; } /** *
* The maximum number of Spot Instances to launch. *
** Default: 1 *
* * @return The maximum number of Spot Instances to launch. ** Default: 1 */ public Integer getInstanceCount() { return this.instanceCount; } /** *
* The maximum number of Spot Instances to launch. *
** Default: 1 *
* * @param instanceCount * The maximum number of Spot Instances to launch. ** Default: 1 * @return Returns a reference to this object so that method calls can be chained together. */ public RequestSpotInstancesRequest withInstanceCount(Integer instanceCount) { setInstanceCount(instanceCount); return this; } /** *
* The instance launch group. Launch groups are Spot Instances that launch together and terminate together. *
** Default: Instances are launched and terminated individually *
* * @param launchGroup * The instance launch group. Launch groups are Spot Instances that launch together and terminate * together. ** Default: Instances are launched and terminated individually */ public void setLaunchGroup(String launchGroup) { this.launchGroup = launchGroup; } /** *
* The instance launch group. Launch groups are Spot Instances that launch together and terminate together. *
** Default: Instances are launched and terminated individually *
* * @return The instance launch group. Launch groups are Spot Instances that launch together and terminate * together. ** Default: Instances are launched and terminated individually */ public String getLaunchGroup() { return this.launchGroup; } /** *
* The instance launch group. Launch groups are Spot Instances that launch together and terminate together. *
** Default: Instances are launched and terminated individually *
* * @param launchGroup * The instance launch group. Launch groups are Spot Instances that launch together and terminate * together. ** Default: Instances are launched and terminated individually * @return Returns a reference to this object so that method calls can be chained together. */ public RequestSpotInstancesRequest withLaunchGroup(String launchGroup) { setLaunchGroup(launchGroup); return this; } /** *
* The launch specification. *
* * @param launchSpecification * The launch specification. */ public void setLaunchSpecification(LaunchSpecification launchSpecification) { this.launchSpecification = launchSpecification; } /** ** The launch specification. *
* * @return The launch specification. */ public LaunchSpecification getLaunchSpecification() { return this.launchSpecification; } /** ** The launch specification. *
* * @param launchSpecification * The launch specification. * @return Returns a reference to this object so that method calls can be chained together. */ public RequestSpotInstancesRequest withLaunchSpecification(LaunchSpecification launchSpecification) { setLaunchSpecification(launchSpecification); return this; } /** ** The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this * parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the * current Spot price. *
** If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify * this parameter. *
** If you specify a maximum price, your instances will be interrupted more frequently than if you do not * specify this parameter. *
*/ public void setSpotPrice(String spotPrice) { this.spotPrice = spotPrice; } /** ** The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this * parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the * current Spot price. *
** If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify * this parameter. *
** If you specify a maximum price, your instances will be interrupted more frequently than if you do not * specify this parameter. *
*/ public String getSpotPrice() { return this.spotPrice; } /** ** The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this * parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the * current Spot price. *
** If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify * this parameter. *
** If you specify a maximum price, your instances will be interrupted more frequently than if you do not * specify this parameter. *
* @return Returns a reference to this object so that method calls can be chained together. */ public RequestSpotInstancesRequest withSpotPrice(String spotPrice) { setSpotPrice(spotPrice); return this; } /** ** The Spot Instance request type. *
*
* Default: one-time
*
* Default: one-time
* @see SpotInstanceType
*/
public void setType(String type) {
this.type = type;
}
/**
*
* The Spot Instance request type. *
*
* Default: one-time
*
* Default: one-time
* @see SpotInstanceType
*/
public String getType() {
return this.type;
}
/**
*
* The Spot Instance request type. *
*
* Default: one-time
*
* Default: one-time
* @return Returns a reference to this object so that method calls can be chained together.
* @see SpotInstanceType
*/
public RequestSpotInstancesRequest withType(String type) {
setType(type);
return this;
}
/**
*
* The Spot Instance request type. *
*
* Default: one-time
*
* Default: one-time
* @see SpotInstanceType
*/
public void setType(SpotInstanceType type) {
withType(type);
}
/**
*
* The Spot Instance request type. *
*
* Default: one-time
*
* Default: one-time
* @return Returns a reference to this object so that method calls can be chained together.
* @see SpotInstanceType
*/
public RequestSpotInstancesRequest withType(SpotInstanceType type) {
this.type = type.toString();
return this;
}
/**
*
* The start date of the request. If this is a one-time request, the request becomes active at this date and time * and remains active until all instances launch, the request expires, or the request is canceled. If the request is * persistent, the request becomes active at this date and time and remains active until it expires or is canceled. *
** The specified start date and time cannot be equal to the current date and time. You must specify a start date and * time that occurs after the current date and time. *
* * @param validFrom * The start date of the request. If this is a one-time request, the request becomes active at this date and * time and remains active until all instances launch, the request expires, or the request is canceled. If * the request is persistent, the request becomes active at this date and time and remains active until it * expires or is canceled. ** The specified start date and time cannot be equal to the current date and time. You must specify a start * date and time that occurs after the current date and time. */ public void setValidFrom(java.util.Date validFrom) { this.validFrom = validFrom; } /** *
* The start date of the request. If this is a one-time request, the request becomes active at this date and time * and remains active until all instances launch, the request expires, or the request is canceled. If the request is * persistent, the request becomes active at this date and time and remains active until it expires or is canceled. *
** The specified start date and time cannot be equal to the current date and time. You must specify a start date and * time that occurs after the current date and time. *
* * @return The start date of the request. If this is a one-time request, the request becomes active at this date and * time and remains active until all instances launch, the request expires, or the request is canceled. If * the request is persistent, the request becomes active at this date and time and remains active until it * expires or is canceled. ** The specified start date and time cannot be equal to the current date and time. You must specify a start * date and time that occurs after the current date and time. */ public java.util.Date getValidFrom() { return this.validFrom; } /** *
* The start date of the request. If this is a one-time request, the request becomes active at this date and time * and remains active until all instances launch, the request expires, or the request is canceled. If the request is * persistent, the request becomes active at this date and time and remains active until it expires or is canceled. *
** The specified start date and time cannot be equal to the current date and time. You must specify a start date and * time that occurs after the current date and time. *
* * @param validFrom * The start date of the request. If this is a one-time request, the request becomes active at this date and * time and remains active until all instances launch, the request expires, or the request is canceled. If * the request is persistent, the request becomes active at this date and time and remains active until it * expires or is canceled. ** The specified start date and time cannot be equal to the current date and time. You must specify a start * date and time that occurs after the current date and time. * @return Returns a reference to this object so that method calls can be chained together. */ public RequestSpotInstancesRequest withValidFrom(java.util.Date validFrom) { setValidFrom(validFrom); return this; } /** *
* The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). *
*
* For a persistent request, the request remains active until the ValidUntil
date and time is reached.
* Otherwise, the request remains active until you cancel it.
*
* For a one-time request, the request remains active until all instances launch, the request is canceled, or the
* ValidUntil
date and time is reached. By default, the request is valid for 7 days from the date the
* request was created.
*
* For a persistent request, the request remains active until the ValidUntil
date and time is
* reached. Otherwise, the request remains active until you cancel it.
*
* For a one-time request, the request remains active until all instances launch, the request is canceled, or
* the ValidUntil
date and time is reached. By default, the request is valid for 7 days from the
* date the request was created.
*
* The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). *
*
* For a persistent request, the request remains active until the ValidUntil
date and time is reached.
* Otherwise, the request remains active until you cancel it.
*
* For a one-time request, the request remains active until all instances launch, the request is canceled, or the
* ValidUntil
date and time is reached. By default, the request is valid for 7 days from the date the
* request was created.
*
* For a persistent request, the request remains active until the ValidUntil
date and time is
* reached. Otherwise, the request remains active until you cancel it.
*
* For a one-time request, the request remains active until all instances launch, the request is canceled,
* or the ValidUntil
date and time is reached. By default, the request is valid for 7 days from
* the date the request was created.
*
* The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). *
*
* For a persistent request, the request remains active until the ValidUntil
date and time is reached.
* Otherwise, the request remains active until you cancel it.
*
* For a one-time request, the request remains active until all instances launch, the request is canceled, or the
* ValidUntil
date and time is reached. By default, the request is valid for 7 days from the date the
* request was created.
*
* For a persistent request, the request remains active until the ValidUntil
date and time is
* reached. Otherwise, the request remains active until you cancel it.
*
* For a one-time request, the request remains active until all instances launch, the request is canceled, or
* the ValidUntil
date and time is reached. By default, the request is valid for 7 days from the
* date the request was created.
*
* The key-value pair for tagging the Spot Instance request on creation. The value for ResourceType
* must be spot-instances-request
, otherwise the Spot Instance request fails. To tag the Spot Instance
* request after it has been created, see CreateTags.
*
ResourceType
must be spot-instances-request
, otherwise the Spot Instance
* request fails. To tag the Spot Instance request after it has been created, see CreateTags.
*/
public java.util.List
* The key-value pair for tagging the Spot Instance request on creation. The value for ResourceType
* must be spot-instances-request
, otherwise the Spot Instance request fails. To tag the Spot Instance
* request after it has been created, see CreateTags.
*
ResourceType
must be spot-instances-request
, otherwise the Spot Instance request
* fails. To tag the Spot Instance request after it has been created, see CreateTags.
*/
public void setTagSpecifications(java.util.Collection
* The key-value pair for tagging the Spot Instance request on creation. The value for ResourceType
* must be spot-instances-request
, otherwise the Spot Instance request fails. To tag the Spot Instance
* request after it has been created, see CreateTags.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTagSpecifications(java.util.Collection)} or {@link #withTagSpecifications(java.util.Collection)} if * you want to override the existing values. *
* * @param tagSpecifications * The key-value pair for tagging the Spot Instance request on creation. The value for *ResourceType
must be spot-instances-request
, otherwise the Spot Instance request
* fails. To tag the Spot Instance request after it has been created, see CreateTags.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestSpotInstancesRequest withTagSpecifications(TagSpecification... tagSpecifications) {
if (this.tagSpecifications == null) {
setTagSpecifications(new com.amazonaws.internal.SdkInternalList
* The key-value pair for tagging the Spot Instance request on creation. The value for ResourceType
* must be spot-instances-request
, otherwise the Spot Instance request fails. To tag the Spot Instance
* request after it has been created, see CreateTags.
*
ResourceType
must be spot-instances-request
, otherwise the Spot Instance request
* fails. To tag the Spot Instance request after it has been created, see CreateTags.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestSpotInstancesRequest withTagSpecifications(java.util.Collection
* The behavior when a Spot Instance is interrupted. The default is terminate
.
*
terminate
.
* @see InstanceInterruptionBehavior
*/
public void setInstanceInterruptionBehavior(String instanceInterruptionBehavior) {
this.instanceInterruptionBehavior = instanceInterruptionBehavior;
}
/**
*
* The behavior when a Spot Instance is interrupted. The default is terminate
.
*
terminate
.
* @see InstanceInterruptionBehavior
*/
public String getInstanceInterruptionBehavior() {
return this.instanceInterruptionBehavior;
}
/**
*
* The behavior when a Spot Instance is interrupted. The default is terminate
.
*
terminate
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see InstanceInterruptionBehavior
*/
public RequestSpotInstancesRequest withInstanceInterruptionBehavior(String instanceInterruptionBehavior) {
setInstanceInterruptionBehavior(instanceInterruptionBehavior);
return this;
}
/**
*
* The behavior when a Spot Instance is interrupted. The default is terminate
.
*
terminate
.
* @see InstanceInterruptionBehavior
*/
public void setInstanceInterruptionBehavior(InstanceInterruptionBehavior instanceInterruptionBehavior) {
withInstanceInterruptionBehavior(instanceInterruptionBehavior);
}
/**
*
* The behavior when a Spot Instance is interrupted. The default is terminate
.
*
terminate
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see InstanceInterruptionBehavior
*/
public RequestSpotInstancesRequest withInstanceInterruptionBehavior(InstanceInterruptionBehavior instanceInterruptionBehavior) {
this.instanceInterruptionBehavior = instanceInterruptionBehavior.toString();
return this;
}
/**
* This method is intended for internal use only. Returns the marshaled request configured with additional
* parameters to enable operation dry-run.
*/
@Override
public Request