@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceMetadataDefaultsResponse extends Object implements Serializable, Cloneable
The default instance metadata service (IMDS) settings that were set at the account level in the specified Amazon Web Services Region.
Constructor and Description |
---|
InstanceMetadataDefaultsResponse() |
Modifier and Type | Method and Description |
---|---|
InstanceMetadataDefaultsResponse |
clone() |
boolean |
equals(Object obj) |
String |
getHttpEndpoint()
Indicates whether the IMDS endpoint for an instance is enabled or disabled.
|
Integer |
getHttpPutResponseHopLimit()
The maximum number of hops that the metadata token can travel.
|
String |
getHttpTokens()
Indicates whether IMDSv2 is required.
|
String |
getInstanceMetadataTags()
Indicates whether access to instance tags from the instance metadata is enabled or disabled.
|
int |
hashCode() |
void |
setHttpEndpoint(String httpEndpoint)
Indicates whether the IMDS endpoint for an instance is enabled or disabled.
|
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)
Indicates whether access to instance tags from the instance metadata is enabled or disabled.
|
String |
toString()
Returns a string representation of this object.
|
InstanceMetadataDefaultsResponse |
withHttpEndpoint(InstanceMetadataEndpointState httpEndpoint)
Indicates whether the IMDS endpoint for an instance is enabled or disabled.
|
InstanceMetadataDefaultsResponse |
withHttpEndpoint(String httpEndpoint)
Indicates whether the IMDS endpoint for an instance is enabled or disabled.
|
InstanceMetadataDefaultsResponse |
withHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The maximum number of hops that the metadata token can travel.
|
InstanceMetadataDefaultsResponse |
withHttpTokens(HttpTokensState httpTokens)
Indicates whether IMDSv2 is required.
|
InstanceMetadataDefaultsResponse |
withHttpTokens(String httpTokens)
Indicates whether IMDSv2 is required.
|
InstanceMetadataDefaultsResponse |
withInstanceMetadataTags(InstanceMetadataTagsState instanceMetadataTags)
Indicates whether access to instance tags from the instance metadata is enabled or disabled.
|
InstanceMetadataDefaultsResponse |
withInstanceMetadataTags(String instanceMetadataTags)
Indicates whether access to instance tags from the instance metadata is enabled or disabled.
|
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.
HttpTokensState
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.
HttpTokensState
public InstanceMetadataDefaultsResponse 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.
HttpTokensState
public InstanceMetadataDefaultsResponse withHttpTokens(HttpTokensState 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.
HttpTokensState
public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The maximum number of hops that the metadata token can travel.
httpPutResponseHopLimit
- The maximum number of hops that the metadata token can travel.public Integer getHttpPutResponseHopLimit()
The maximum number of hops that the metadata token can travel.
public InstanceMetadataDefaultsResponse withHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The maximum number of hops that the metadata token can travel.
httpPutResponseHopLimit
- The maximum number of hops that the metadata token can travel.public void setHttpEndpoint(String httpEndpoint)
Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
httpEndpoint
- Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance
metadata can't be accessed.InstanceMetadataEndpointState
public String getHttpEndpoint()
Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
InstanceMetadataEndpointState
public InstanceMetadataDefaultsResponse withHttpEndpoint(String httpEndpoint)
Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
httpEndpoint
- Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance
metadata can't be accessed.InstanceMetadataEndpointState
public InstanceMetadataDefaultsResponse withHttpEndpoint(InstanceMetadataEndpointState httpEndpoint)
Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
httpEndpoint
- Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance
metadata can't be accessed.InstanceMetadataEndpointState
public void setInstanceMetadataTags(String instanceMetadataTags)
Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
instanceMetadataTags
- Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more
information, see Work
with instance tags using the instance metadata in the Amazon EC2 User Guide.InstanceMetadataTagsState
public String getInstanceMetadataTags()
Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
InstanceMetadataTagsState
public InstanceMetadataDefaultsResponse withInstanceMetadataTags(String instanceMetadataTags)
Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
instanceMetadataTags
- Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more
information, see Work
with instance tags using the instance metadata in the Amazon EC2 User Guide.InstanceMetadataTagsState
public InstanceMetadataDefaultsResponse withInstanceMetadataTags(InstanceMetadataTagsState instanceMetadataTags)
Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
instanceMetadataTags
- Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more
information, see Work
with instance tags using the instance metadata in the Amazon EC2 User Guide.InstanceMetadataTagsState
public String toString()
toString
in class Object
Object.toString()
public InstanceMetadataDefaultsResponse clone()