/* * Copyright 2010-2018 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 com.amazonaws.AmazonWebServiceRequest; import com.amazonaws.Request; import com.amazonaws.services.ec2.model.transform.ResetInstanceAttributeRequestMarshaller; /** * Container for the parameters to the {@link com.amazonaws.services.ec2.AmazonEC2#resetInstanceAttribute(ResetInstanceAttributeRequest) ResetInstanceAttribute operation}. *
* Resets an attribute of an instance to its default value. To reset the
* kernel
or ramdisk
, the instance must be in
* a stopped state. To reset the sourceDestCheck
, the
* instance can be either running or stopped.
*
* The sourceDestCheck
attribute controls whether
* source/destination checking is enabled. The default value is
* true
, which means checking is enabled. This value must
* be false
for a NAT instance to perform NAT. For more
* information, see
* NAT Instances
* in the Amazon Virtual Private Cloud User Guide .
*
You can only reset the following
* attributes: kernel
| ramdisk
|
* sourceDestCheck
. To change an instance attribute, use
* ModifyInstanceAttribute.
* Constraints: You can only
* reset the following attributes: You can only
* reset the following attributes:
* Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
*/
private String attribute;
/**
* Default constructor for a new ResetInstanceAttributeRequest object. Callers should use the
* setter or fluent setter (with...) methods to initialize this object after creating it.
*/
public ResetInstanceAttributeRequest() {}
/**
* Constructs a new ResetInstanceAttributeRequest object.
* Callers should use the setter or fluent setter (with...) methods to
* initialize any additional object members.
*
* @param instanceId The ID of the instance.
* @param attribute The attribute to reset. kernel
|
* ramdisk
| sourceDestCheck
. To change an
* instance attribute, use ModifyInstanceAttribute.kernel
|
* ramdisk
| sourceDestCheck
. To change an
* instance attribute, use ModifyInstanceAttribute.
* Returns a reference to this object so that method calls can be chained together.
*
* @param instanceId The ID of the instance.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ResetInstanceAttributeRequest withInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* The attribute to reset. You can only reset the following
* attributes: kernel
| ramdisk
|
* sourceDestCheck
. To change an instance attribute, use
* ModifyInstanceAttribute.
* Constraints: You can only reset the following
* attributes: You can only reset the following
* attributes:
* Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
*
* @return The attribute to reset. kernel
| ramdisk
|
* sourceDestCheck
. To change an instance attribute, use
* ModifyInstanceAttribute.kernel
| ramdisk
|
* sourceDestCheck
. To change an instance attribute, use
* ModifyInstanceAttribute.
* Constraints: You can only reset the following
* attributes: You can only reset the following
* attributes:
* Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
*
* @param attribute The attribute to reset. kernel
| ramdisk
|
* sourceDestCheck
. To change an instance attribute, use
* ModifyInstanceAttribute.kernel
| ramdisk
|
* sourceDestCheck
. To change an instance attribute, use
* ModifyInstanceAttribute.
* Returns a reference to this object so that method calls can be chained together. *
* Constraints: You can only reset the following
* attributes: You can only reset the following
* attributes:
* Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
*
* @param attribute The attribute to reset. kernel
| ramdisk
|
* sourceDestCheck
. To change an instance attribute, use
* ModifyInstanceAttribute.kernel
| ramdisk
|
* sourceDestCheck
. To change an instance attribute, use
* ModifyInstanceAttribute.
* Constraints: You can only reset the following
* attributes: You can only reset the following
* attributes:
* Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
*
* @param attribute The attribute to reset. kernel
| ramdisk
|
* sourceDestCheck
. To change an instance attribute, use
* ModifyInstanceAttribute.kernel
| ramdisk
|
* sourceDestCheck
. To change an instance attribute, use
* ModifyInstanceAttribute.
* Returns a reference to this object so that method calls can be chained together. *
* Constraints: You can only reset the following
* attributes:
* Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
*
* @param attribute The attribute to reset. kernel
| ramdisk
|
* sourceDestCheck
. To change an instance attribute, use
* ModifyInstanceAttribute.