/*
* 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.ModifyInstanceAttributeRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ModifyInstanceAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable,
DryRunSupportedRequest
* Enable or disable source/destination checks, which ensure that the instance is either the source or the
* destination of any traffic that it receives. If the value is
* The name of the attribute to modify.
*
* You can modify the following attributes only:
* Modifies the
* To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance.
* For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
*
* If the value is
* Specifies whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput
* to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization
* isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
*
* Set to
* This option is supported only for HVM instances. Specifying this option with a PV instance can make it
* unreachable.
*
* Replaces the security groups of the instance with the specified security groups. You must specify the ID of at
* least one security group, even if it's just the default security group for the VPC.
*
* The ID of the instance.
*
* Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the
* operating system command for system shutdown).
*
* Changes the instance type to the specified value. For more information, see Instance types in the
* Amazon EC2 User Guide. If the instance type is not valid, the error returned is
*
* Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and
* RAM disks. For more information, see PV-GRUB.
*
* Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and
* RAM disks. For more information, see PV-GRUB.
*
* Set to
* There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time.
*
* This option is supported only for HVM instances. Specifying this option with a PV instance can make it
* unreachable.
*
* Changes the instance's user data to the specified value. If you are using an Amazon Web Services SDK or command
* line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must
* provide base64-encoded text.
*
* A new value for the attribute. Use only with the
* Indicates whether an instance is enabled for stop protection. For more information, see Stop
* Protection.
* true
, source/destination checks are
* enabled; otherwise, they are disabled. The default value is true
. You must disable
* source/destination checks if the instance runs services such as network address translation, routing, or
* firewalls.
* disableApiTermination
| instanceType
|
* kernel
| ramdisk
| instanceInitiatedShutdownBehavior
|
* blockDeviceMapping
| userData
| sourceDestCheck
| groupSet
|
* ebsOptimized
| sriovNetSupport
| enaSupport
| nvmeSupport
|
* disableApiStop
| enclaveOptions
* DeleteOnTermination
attribute for volumes that are currently attached. The volume must
* be owned by the caller. If no value is specified for DeleteOnTermination
, the default is
* true
and the volume is deleted when the instance is terminated.
* true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API;
* otherwise, you can. You cannot use this parameter for Spot Instances.
* true
to enable enhanced networking with ENA for the instance.
* InvalidInstanceAttributeValue
.
* simple
to enable enhanced networking with the Intel 82599 Virtual Function interface for the
* instance.
* kernel
, ramdisk
, userData
, disableApiTermination
, or instanceInitiatedShutdownBehavior
attribute.
*
* You can modify the following attributes only: disableApiTermination
|
* instanceType
| kernel
| ramdisk
|
* instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
|
* sourceDestCheck
| groupSet
| ebsOptimized
|
* sriovNetSupport
| enaSupport
| nvmeSupport
|
* disableApiStop
| enclaveOptions
*
* You can modify the following attributes only: disableApiTermination
|
* instanceType
| kernel
| ramdisk
|
* instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
|
* sourceDestCheck
| groupSet
| ebsOptimized
|
* sriovNetSupport
| enaSupport
| nvmeSupport
|
* disableApiStop
| enclaveOptions
*
* Enable or disable source/destination checks, which ensure that the instance is either the source or the
* destination of any traffic that it receives. If the value is true
, source/destination checks are
* enabled; otherwise, they are disabled. The default value is true
. You must disable
* source/destination checks if the instance runs services such as network address translation, routing, or
* firewalls.
*
true
, source/destination checks
* are enabled; otherwise, they are disabled. The default value is true
. You must disable
* source/destination checks if the instance runs services such as network address translation, routing, or
* firewalls.
*/
public void setSourceDestCheck(Boolean sourceDestCheck) {
this.sourceDestCheck = sourceDestCheck;
}
/**
*
* Enable or disable source/destination checks, which ensure that the instance is either the source or the
* destination of any traffic that it receives. If the value is true
, source/destination checks are
* enabled; otherwise, they are disabled. The default value is true
. You must disable
* source/destination checks if the instance runs services such as network address translation, routing, or
* firewalls.
*
true
, source/destination checks
* are enabled; otherwise, they are disabled. The default value is true
. You must disable
* source/destination checks if the instance runs services such as network address translation, routing, or
* firewalls.
*/
public Boolean getSourceDestCheck() {
return this.sourceDestCheck;
}
/**
*
* Enable or disable source/destination checks, which ensure that the instance is either the source or the
* destination of any traffic that it receives. If the value is true
, source/destination checks are
* enabled; otherwise, they are disabled. The default value is true
. You must disable
* source/destination checks if the instance runs services such as network address translation, routing, or
* firewalls.
*
true
, source/destination checks
* are enabled; otherwise, they are disabled. The default value is true
. You must disable
* source/destination checks if the instance runs services such as network address translation, routing, or
* firewalls.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyInstanceAttributeRequest withSourceDestCheck(Boolean sourceDestCheck) {
setSourceDestCheck(sourceDestCheck);
return this;
}
/**
*
* Enable or disable source/destination checks, which ensure that the instance is either the source or the
* destination of any traffic that it receives. If the value is true
, source/destination checks are
* enabled; otherwise, they are disabled. The default value is true
. You must disable
* source/destination checks if the instance runs services such as network address translation, routing, or
* firewalls.
*
true
, source/destination checks
* are enabled; otherwise, they are disabled. The default value is true
. You must disable
* source/destination checks if the instance runs services such as network address translation, routing, or
* firewalls.
*/
public Boolean isSourceDestCheck() {
return this.sourceDestCheck;
}
/**
* * The name of the attribute to modify. *
*
* You can modify the following attributes only: disableApiTermination
| instanceType
|
* kernel
| ramdisk
| instanceInitiatedShutdownBehavior
|
* blockDeviceMapping
| userData
| sourceDestCheck
| groupSet
|
* ebsOptimized
| sriovNetSupport
| enaSupport
| nvmeSupport
|
* disableApiStop
| enclaveOptions
*
* You can modify the following attributes only: disableApiTermination
|
* instanceType
| kernel
| ramdisk
|
* instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
|
* sourceDestCheck
| groupSet
| ebsOptimized
|
* sriovNetSupport
| enaSupport
| nvmeSupport
|
* disableApiStop
| enclaveOptions
*
* The name of the attribute to modify. *
*
* You can modify the following attributes only: disableApiTermination
| instanceType
|
* kernel
| ramdisk
| instanceInitiatedShutdownBehavior
|
* blockDeviceMapping
| userData
| sourceDestCheck
| groupSet
|
* ebsOptimized
| sriovNetSupport
| enaSupport
| nvmeSupport
|
* disableApiStop
| enclaveOptions
*
* You can modify the following attributes only: disableApiTermination
|
* instanceType
| kernel
| ramdisk
|
* instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
* | sourceDestCheck
| groupSet
| ebsOptimized
|
* sriovNetSupport
| enaSupport
| nvmeSupport
|
* disableApiStop
| enclaveOptions
*
* The name of the attribute to modify. *
*
* You can modify the following attributes only: disableApiTermination
| instanceType
|
* kernel
| ramdisk
| instanceInitiatedShutdownBehavior
|
* blockDeviceMapping
| userData
| sourceDestCheck
| groupSet
|
* ebsOptimized
| sriovNetSupport
| enaSupport
| nvmeSupport
|
* disableApiStop
| enclaveOptions
*
* You can modify the following attributes only: disableApiTermination
|
* instanceType
| kernel
| ramdisk
|
* instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
|
* sourceDestCheck
| groupSet
| ebsOptimized
|
* sriovNetSupport
| enaSupport
| nvmeSupport
|
* disableApiStop
| enclaveOptions
*
* The name of the attribute to modify. *
*
* You can modify the following attributes only: disableApiTermination
| instanceType
|
* kernel
| ramdisk
| instanceInitiatedShutdownBehavior
|
* blockDeviceMapping
| userData
| sourceDestCheck
| groupSet
|
* ebsOptimized
| sriovNetSupport
| enaSupport
| nvmeSupport
|
* disableApiStop
| enclaveOptions
*
* You can modify the following attributes only: disableApiTermination
|
* instanceType
| kernel
| ramdisk
|
* instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
|
* sourceDestCheck
| groupSet
| ebsOptimized
|
* sriovNetSupport
| enaSupport
| nvmeSupport
|
* disableApiStop
| enclaveOptions
*
* The name of the attribute to modify. *
*
* You can modify the following attributes only: disableApiTermination
| instanceType
|
* kernel
| ramdisk
| instanceInitiatedShutdownBehavior
|
* blockDeviceMapping
| userData
| sourceDestCheck
| groupSet
|
* ebsOptimized
| sriovNetSupport
| enaSupport
| nvmeSupport
|
* disableApiStop
| enclaveOptions
*
* You can modify the following attributes only: disableApiTermination
|
* instanceType
| kernel
| ramdisk
|
* instanceInitiatedShutdownBehavior
| blockDeviceMapping
| userData
|
* sourceDestCheck
| groupSet
| ebsOptimized
|
* sriovNetSupport
| enaSupport
| nvmeSupport
|
* disableApiStop
| enclaveOptions
*
* Modifies the DeleteOnTermination
attribute for volumes that are currently attached. The volume must
* be owned by the caller. If no value is specified for DeleteOnTermination
, the default is
* true
and the volume is deleted when the instance is terminated.
*
* To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. * For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide. *
* * @return Modifies theDeleteOnTermination
attribute for volumes that are currently attached. The
* volume must be owned by the caller. If no value is specified for DeleteOnTermination
, the
* default is true
and the volume is deleted when the instance is terminated.
*
* To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the
* instance. For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
*/
public java.util.List
* Modifies the
* To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance.
* For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
* DeleteOnTermination
attribute for volumes that are currently attached. The volume must
* be owned by the caller. If no value is specified for DeleteOnTermination
, the default is
* true
and the volume is deleted when the instance is terminated.
* DeleteOnTermination
attribute for volumes that are currently attached. The
* volume must be owned by the caller. If no value is specified for DeleteOnTermination
, the
* default is true
and the volume is deleted when the instance is terminated.
* To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the
* instance. For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
*/
public void setBlockDeviceMappings(java.util.Collection
* Modifies the
* To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance.
* For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setBlockDeviceMappings(java.util.Collection)} or {@link #withBlockDeviceMappings(java.util.Collection)}
* if you want to override the existing values.
* DeleteOnTermination
attribute for volumes that are currently attached. The volume must
* be owned by the caller. If no value is specified for DeleteOnTermination
, the default is
* true
and the volume is deleted when the instance is terminated.
* DeleteOnTermination
attribute for volumes that are currently attached. The
* volume must be owned by the caller. If no value is specified for DeleteOnTermination
, the
* default is true
and the volume is deleted when the instance is terminated.
* To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the
* instance. For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyInstanceAttributeRequest withBlockDeviceMappings(InstanceBlockDeviceMappingSpecification... blockDeviceMappings) {
if (this.blockDeviceMappings == null) {
setBlockDeviceMappings(new com.amazonaws.internal.SdkInternalList
* Modifies the
* To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance.
* For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
* DeleteOnTermination
attribute for volumes that are currently attached. The volume must
* be owned by the caller. If no value is specified for DeleteOnTermination
, the default is
* true
and the volume is deleted when the instance is terminated.
* DeleteOnTermination
attribute for volumes that are currently attached. The
* volume must be owned by the caller. If no value is specified for DeleteOnTermination
, the
* default is true
and the volume is deleted when the instance is terminated.
* To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the
* instance. For more information, see Update the block device mapping when launching an instance in the Amazon EC2 User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyInstanceAttributeRequest withBlockDeviceMappings(java.util.Collection
* If the value is
* If the value is
* If the value is
* If the value is
* Specifies whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput
* to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization
* isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
*
* Specifies whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput
* to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization
* isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
*
* Specifies whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput
* to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization
* isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
*
* Specifies whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput
* to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization
* isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
*
* Set to
* This option is supported only for HVM instances. Specifying this option with a PV instance can make it
* unreachable.
* true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API;
* otherwise, you can. You cannot use this parameter for Spot Instances.
* true
, you can't terminate the instance using the Amazon EC2 console, CLI, or
* API; otherwise, you can. You cannot use this parameter for Spot Instances.
*/
public void setDisableApiTermination(Boolean disableApiTermination) {
this.disableApiTermination = disableApiTermination;
}
/**
* true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API;
* otherwise, you can. You cannot use this parameter for Spot Instances.
* true
, you can't terminate the instance using the Amazon EC2 console, CLI, or
* API; otherwise, you can. You cannot use this parameter for Spot Instances.
*/
public Boolean getDisableApiTermination() {
return this.disableApiTermination;
}
/**
* true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API;
* otherwise, you can. You cannot use this parameter for Spot Instances.
* true
, you can't terminate the instance using the Amazon EC2 console, CLI, or
* API; otherwise, you can. You cannot use this parameter for Spot Instances.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyInstanceAttributeRequest withDisableApiTermination(Boolean disableApiTermination) {
setDisableApiTermination(disableApiTermination);
return this;
}
/**
* true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API;
* otherwise, you can. You cannot use this parameter for Spot Instances.
* true
, you can't terminate the instance using the Amazon EC2 console, CLI, or
* API; otherwise, you can. You cannot use this parameter for Spot Instances.
*/
public Boolean isDisableApiTermination() {
return this.disableApiTermination;
}
/**
* true
to enable enhanced networking with ENA for the instance.
* true
to enable enhanced networking with ENA for the instance.
* This option is supported only for HVM instances. Specifying this option with a PV instance can make it * unreachable. */ public void setEnaSupport(Boolean enaSupport) { this.enaSupport = enaSupport; } /** *
* Set to true
to enable enhanced networking with ENA for the instance.
*
* This option is supported only for HVM instances. Specifying this option with a PV instance can make it * unreachable. *
* * @return Set totrue
to enable enhanced networking with ENA for the instance.
* * This option is supported only for HVM instances. Specifying this option with a PV instance can make it * unreachable. */ public Boolean getEnaSupport() { return this.enaSupport; } /** *
* Set to true
to enable enhanced networking with ENA for the instance.
*
* This option is supported only for HVM instances. Specifying this option with a PV instance can make it * unreachable. *
* * @param enaSupport * Set totrue
to enable enhanced networking with ENA for the instance.
* * This option is supported only for HVM instances. Specifying this option with a PV instance can make it * unreachable. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyInstanceAttributeRequest withEnaSupport(Boolean enaSupport) { setEnaSupport(enaSupport); return this; } /** *
* Set to true
to enable enhanced networking with ENA for the instance.
*
* This option is supported only for HVM instances. Specifying this option with a PV instance can make it * unreachable. *
* * @return Set totrue
to enable enhanced networking with ENA for the instance.
* * This option is supported only for HVM instances. Specifying this option with a PV instance can make it * unreachable. */ public Boolean isEnaSupport() { return this.enaSupport; } /** *
* Replaces the security groups of the instance with the specified security groups. You must specify the ID of at * least one security group, even if it's just the default security group for the VPC. *
* * @return Replaces the security groups of the instance with the specified security groups. You must specify the ID * of at least one security group, even if it's just the default security group for the VPC. */ public java.util.List* Replaces the security groups of the instance with the specified security groups. You must specify the ID of at * least one security group, even if it's just the default security group for the VPC. *
* * @param groups * Replaces the security groups of the instance with the specified security groups. You must specify the ID * of at least one security group, even if it's just the default security group for the VPC. */ public void setGroups(java.util.Collection* Replaces the security groups of the instance with the specified security groups. You must specify the ID of at * least one security group, even if it's just the default security group for the VPC. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGroups(java.util.Collection)} or {@link #withGroups(java.util.Collection)} if you want to override the * existing values. *
* * @param groups * Replaces the security groups of the instance with the specified security groups. You must specify the ID * of at least one security group, even if it's just the default security group for the VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyInstanceAttributeRequest withGroups(String... groups) { if (this.groups == null) { setGroups(new com.amazonaws.internal.SdkInternalList* Replaces the security groups of the instance with the specified security groups. You must specify the ID of at * least one security group, even if it's just the default security group for the VPC. *
* * @param groups * Replaces the security groups of the instance with the specified security groups. You must specify the ID * of at least one security group, even if it's just the default security group for the VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyInstanceAttributeRequest withGroups(java.util.Collection* The ID of the instance. *
* * @param instanceId * The ID of the instance. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** ** The ID of the instance. *
* * @return The ID of the instance. */ public String getInstanceId() { return this.instanceId; } /** ** The ID of the instance. *
* * @param instanceId * The ID of the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyInstanceAttributeRequest withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** ** Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the * operating system command for system shutdown). *
* * @param instanceInitiatedShutdownBehavior * Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the * operating system command for system shutdown). */ public void setInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior) { this.instanceInitiatedShutdownBehavior = instanceInitiatedShutdownBehavior; } /** ** Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the * operating system command for system shutdown). *
* * @return Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the * operating system command for system shutdown). */ public String getInstanceInitiatedShutdownBehavior() { return this.instanceInitiatedShutdownBehavior; } /** ** Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the * operating system command for system shutdown). *
* * @param instanceInitiatedShutdownBehavior * Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the * operating system command for system shutdown). * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyInstanceAttributeRequest withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior) { setInstanceInitiatedShutdownBehavior(instanceInitiatedShutdownBehavior); return this; } /** *
* Changes the instance type to the specified value. For more information, see Instance types in the
* Amazon EC2 User Guide. If the instance type is not valid, the error returned is
* InvalidInstanceAttributeValue
.
*
InvalidInstanceAttributeValue
.
*/
public void setInstanceType(String instanceType) {
this.instanceType = instanceType;
}
/**
*
* Changes the instance type to the specified value. For more information, see Instance types in the
* Amazon EC2 User Guide. If the instance type is not valid, the error returned is
* InvalidInstanceAttributeValue
.
*
InvalidInstanceAttributeValue
.
*/
public String getInstanceType() {
return this.instanceType;
}
/**
*
* Changes the instance type to the specified value. For more information, see Instance types in the
* Amazon EC2 User Guide. If the instance type is not valid, the error returned is
* InvalidInstanceAttributeValue
.
*
InvalidInstanceAttributeValue
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyInstanceAttributeRequest withInstanceType(String instanceType) {
setInstanceType(instanceType);
return this;
}
/**
* * Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and * RAM disks. For more information, see PV-GRUB. *
* * @param kernel * Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels * and RAM disks. For more information, see PV-GRUB. */ public void setKernel(String kernel) { this.kernel = kernel; } /** ** Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and * RAM disks. For more information, see PV-GRUB. *
* * @return Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of * kernels and RAM disks. For more information, see PV-GRUB. */ public String getKernel() { return this.kernel; } /** ** Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and * RAM disks. For more information, see PV-GRUB. *
* * @param kernel * Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels * and RAM disks. For more information, see PV-GRUB. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyInstanceAttributeRequest withKernel(String kernel) { setKernel(kernel); return this; } /** ** Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and * RAM disks. For more information, see PV-GRUB. *
* * @param ramdisk * Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of * kernels and RAM disks. For more information, see PV-GRUB. */ public void setRamdisk(String ramdisk) { this.ramdisk = ramdisk; } /** ** Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and * RAM disks. For more information, see PV-GRUB. *
* * @return Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of * kernels and RAM disks. For more information, see PV-GRUB. */ public String getRamdisk() { return this.ramdisk; } /** ** Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and * RAM disks. For more information, see PV-GRUB. *
* * @param ramdisk * Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of * kernels and RAM disks. For more information, see PV-GRUB. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyInstanceAttributeRequest withRamdisk(String ramdisk) { setRamdisk(ramdisk); return this; } /** *
* Set to simple
to enable enhanced networking with the Intel 82599 Virtual Function interface for the
* instance.
*
* There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time. *
** This option is supported only for HVM instances. Specifying this option with a PV instance can make it * unreachable. *
* * @param sriovNetSupport * Set tosimple
to enable enhanced networking with the Intel 82599 Virtual Function interface
* for the instance.
* * There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this * time. *
** This option is supported only for HVM instances. Specifying this option with a PV instance can make it * unreachable. */ public void setSriovNetSupport(String sriovNetSupport) { this.sriovNetSupport = sriovNetSupport; } /** *
* Set to simple
to enable enhanced networking with the Intel 82599 Virtual Function interface for the
* instance.
*
* There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time. *
** This option is supported only for HVM instances. Specifying this option with a PV instance can make it * unreachable. *
* * @return Set tosimple
to enable enhanced networking with the Intel 82599 Virtual Function interface
* for the instance.
* * There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this * time. *
** This option is supported only for HVM instances. Specifying this option with a PV instance can make it * unreachable. */ public String getSriovNetSupport() { return this.sriovNetSupport; } /** *
* Set to simple
to enable enhanced networking with the Intel 82599 Virtual Function interface for the
* instance.
*
* There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time. *
** This option is supported only for HVM instances. Specifying this option with a PV instance can make it * unreachable. *
* * @param sriovNetSupport * Set tosimple
to enable enhanced networking with the Intel 82599 Virtual Function interface
* for the instance.
* * There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this * time. *
** This option is supported only for HVM instances. Specifying this option with a PV instance can make it * unreachable. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyInstanceAttributeRequest withSriovNetSupport(String sriovNetSupport) { setSriovNetSupport(sriovNetSupport); return this; } /** *
* Changes the instance's user data to the specified value. If you are using an Amazon Web Services SDK or command * line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must * provide base64-encoded text. *
* * @param userData * Changes the instance's user data to the specified value. If you are using an Amazon Web Services SDK or * command line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, * you must provide base64-encoded text. */ public void setUserData(String userData) { this.userData = userData; } /** ** Changes the instance's user data to the specified value. If you are using an Amazon Web Services SDK or command * line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must * provide base64-encoded text. *
* * @return Changes the instance's user data to the specified value. If you are using an Amazon Web Services SDK or * command line tool, base64-encoding is performed for you, and you can load the text from a file. * Otherwise, you must provide base64-encoded text. */ public String getUserData() { return this.userData; } /** ** Changes the instance's user data to the specified value. If you are using an Amazon Web Services SDK or command * line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must * provide base64-encoded text. *
* * @param userData * Changes the instance's user data to the specified value. If you are using an Amazon Web Services SDK or * command line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, * you must provide base64-encoded text. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyInstanceAttributeRequest withUserData(String userData) { setUserData(userData); return this; } /** *
* A new value for the attribute. Use only with the kernel
, ramdisk
, userData
, disableApiTermination
, or instanceInitiatedShutdownBehavior
attribute.
*
kernel
, ramdisk
,
* userData
, disableApiTermination
, or
* instanceInitiatedShutdownBehavior
attribute.
*/
public void setValue(String value) {
this.value = value;
}
/**
*
* A new value for the attribute. Use only with the kernel
, ramdisk
, userData
, disableApiTermination
, or instanceInitiatedShutdownBehavior
attribute.
*
kernel
, ramdisk
,
* userData
, disableApiTermination
, or
* instanceInitiatedShutdownBehavior
attribute.
*/
public String getValue() {
return this.value;
}
/**
*
* A new value for the attribute. Use only with the kernel
, ramdisk
, userData
, disableApiTermination
, or instanceInitiatedShutdownBehavior
attribute.
*
kernel
, ramdisk
,
* userData
, disableApiTermination
, or
* instanceInitiatedShutdownBehavior
attribute.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyInstanceAttributeRequest withValue(String value) {
setValue(value);
return this;
}
/**
* * Indicates whether an instance is enabled for stop protection. For more information, see Stop * Protection. *
* * * @param disableApiStop * Indicates whether an instance is enabled for stop protection. For more information, see Stop * Protection. * */ public void setDisableApiStop(Boolean disableApiStop) { this.disableApiStop = disableApiStop; } /** ** Indicates whether an instance is enabled for stop protection. For more information, see Stop * Protection. *
* * * @return Indicates whether an instance is enabled for stop protection. For more information, see Stop * Protection. * */ public Boolean getDisableApiStop() { return this.disableApiStop; } /** ** Indicates whether an instance is enabled for stop protection. For more information, see Stop * Protection. *
* * * @param disableApiStop * Indicates whether an instance is enabled for stop protection. For more information, see Stop * Protection. * * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyInstanceAttributeRequest withDisableApiStop(Boolean disableApiStop) { setDisableApiStop(disableApiStop); return this; } /** ** Indicates whether an instance is enabled for stop protection. For more information, see Stop * Protection. *
* * * @return Indicates whether an instance is enabled for stop protection. For more information, see Stop * Protection. * */ public Boolean isDisableApiStop() { return this.disableApiStop; } /** * This method is intended for internal use only. Returns the marshaled request configured with additional * parameters to enable operation dry-run. */ @Override public Request