@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyInstanceMetadataDefaultsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyInstanceMetadataDefaultsRequest>
NOOP
Constructor and Description |
---|
ModifyInstanceMetadataDefaultsRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyInstanceMetadataDefaultsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Request<ModifyInstanceMetadataDefaultsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getHttpEndpoint()
Enables or disables the IMDS endpoint on an instance.
|
Integer |
getHttpPutResponseHopLimit()
The maximum number of hops that the metadata token can travel.
|
String |
getHttpTokens()
Indicates whether IMDSv2 is required.
|
String |
getInstanceMetadataTags()
Enables or disables access to an instance's tags from the instance metadata.
|
int |
hashCode() |
void |
setHttpEndpoint(String httpEndpoint)
Enables or disables the IMDS endpoint on an instance.
|
void |
setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The maximum number of hops that the metadata token can travel.
|
void |
setHttpTokens(String httpTokens)
Indicates whether IMDSv2 is required.
|
void |
setInstanceMetadataTags(String instanceMetadataTags)
Enables or disables access to an instance's tags from the instance metadata.
|
String |
toString()
Returns a string representation of this object.
|
ModifyInstanceMetadataDefaultsRequest |
withHttpEndpoint(DefaultInstanceMetadataEndpointState httpEndpoint)
Enables or disables the IMDS endpoint on an instance.
|
ModifyInstanceMetadataDefaultsRequest |
withHttpEndpoint(String httpEndpoint)
Enables or disables the IMDS endpoint on an instance.
|
ModifyInstanceMetadataDefaultsRequest |
withHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The maximum number of hops that the metadata token can travel.
|
ModifyInstanceMetadataDefaultsRequest |
withHttpTokens(MetadataDefaultHttpTokensState httpTokens)
Indicates whether IMDSv2 is required.
|
ModifyInstanceMetadataDefaultsRequest |
withHttpTokens(String httpTokens)
Indicates whether IMDSv2 is required.
|
ModifyInstanceMetadataDefaultsRequest |
withInstanceMetadataTags(DefaultInstanceMetadataTagsState instanceMetadataTags)
Enables or disables access to an instance's tags from the instance metadata.
|
ModifyInstanceMetadataDefaultsRequest |
withInstanceMetadataTags(String instanceMetadataTags)
Enables or disables access to an instance's tags from the instance metadata.
|
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, withSdkRequestTimeout
public ModifyInstanceMetadataDefaultsRequest()
public void setHttpTokens(String httpTokens)
Indicates whether IMDSv2 is required.
optional
– IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.
required
– IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
httpTokens
- Indicates whether IMDSv2 is required.
optional
– IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.
required
– IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
MetadataDefaultHttpTokensState
public String getHttpTokens()
Indicates whether IMDSv2 is required.
optional
– IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.
required
– IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
optional
– IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.
required
– IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
MetadataDefaultHttpTokensState
public ModifyInstanceMetadataDefaultsRequest withHttpTokens(String httpTokens)
Indicates whether IMDSv2 is required.
optional
– IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.
required
– IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
httpTokens
- Indicates whether IMDSv2 is required.
optional
– IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.
required
– IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
MetadataDefaultHttpTokensState
public ModifyInstanceMetadataDefaultsRequest withHttpTokens(MetadataDefaultHttpTokensState httpTokens)
Indicates whether IMDSv2 is required.
optional
– IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.
required
– IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
httpTokens
- Indicates whether IMDSv2 is required.
optional
– IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.
required
– IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
MetadataDefaultHttpTokensState
public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The maximum number of hops that the metadata token can travel. To indicate no preference, specify -1
.
Possible values: Integers from 1
to 64
, and -1
to indicate no preference
httpPutResponseHopLimit
- The maximum number of hops that the metadata token can travel. To indicate no preference, specify
-1
.
Possible values: Integers from 1
to 64
, and -1
to indicate no
preference
public Integer getHttpPutResponseHopLimit()
The maximum number of hops that the metadata token can travel. To indicate no preference, specify -1
.
Possible values: Integers from 1
to 64
, and -1
to indicate no preference
-1
.
Possible values: Integers from 1
to 64
, and -1
to indicate no
preference
public ModifyInstanceMetadataDefaultsRequest withHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The maximum number of hops that the metadata token can travel. To indicate no preference, specify -1
.
Possible values: Integers from 1
to 64
, and -1
to indicate no preference
httpPutResponseHopLimit
- The maximum number of hops that the metadata token can travel. To indicate no preference, specify
-1
.
Possible values: Integers from 1
to 64
, and -1
to indicate no
preference
public void setHttpEndpoint(String httpEndpoint)
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
httpEndpoint
- Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be
accessed.DefaultInstanceMetadataEndpointState
public String getHttpEndpoint()
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
DefaultInstanceMetadataEndpointState
public ModifyInstanceMetadataDefaultsRequest withHttpEndpoint(String httpEndpoint)
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
httpEndpoint
- Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be
accessed.DefaultInstanceMetadataEndpointState
public ModifyInstanceMetadataDefaultsRequest withHttpEndpoint(DefaultInstanceMetadataEndpointState httpEndpoint)
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
httpEndpoint
- Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be
accessed.DefaultInstanceMetadataEndpointState
public void setInstanceMetadataTags(String instanceMetadataTags)
Enables or disables access to an instance's tags from the instance metadata. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
instanceMetadataTags
- Enables or disables access to an instance's tags from the instance metadata. For more information, see Work
with instance tags using the instance metadata in the Amazon EC2 User Guide.DefaultInstanceMetadataTagsState
public String getInstanceMetadataTags()
Enables or disables access to an instance's tags from the instance metadata. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
DefaultInstanceMetadataTagsState
public ModifyInstanceMetadataDefaultsRequest withInstanceMetadataTags(String instanceMetadataTags)
Enables or disables access to an instance's tags from the instance metadata. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
instanceMetadataTags
- Enables or disables access to an instance's tags from the instance metadata. For more information, see Work
with instance tags using the instance metadata in the Amazon EC2 User Guide.DefaultInstanceMetadataTagsState
public ModifyInstanceMetadataDefaultsRequest withInstanceMetadataTags(DefaultInstanceMetadataTagsState instanceMetadataTags)
Enables or disables access to an instance's tags from the instance metadata. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
instanceMetadataTags
- Enables or disables access to an instance's tags from the instance metadata. For more information, see Work
with instance tags using the instance metadata in the Amazon EC2 User Guide.DefaultInstanceMetadataTagsState
public Request<ModifyInstanceMetadataDefaultsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyInstanceMetadataDefaultsRequest>
public String toString()
toString
in class Object
Object.toString()
public ModifyInstanceMetadataDefaultsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()