Interface InstanceMetadataDefaultsResponse.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceMetadataDefaultsResponse.Builder,
,InstanceMetadataDefaultsResponse> SdkBuilder<InstanceMetadataDefaultsResponse.Builder,
,InstanceMetadataDefaultsResponse> SdkPojo
- Enclosing class:
InstanceMetadataDefaultsResponse
-
Method Summary
Modifier and TypeMethodDescriptionhttpEndpoint
(String httpEndpoint) Indicates whether the IMDS endpoint for an instance is enabled or disabled.httpEndpoint
(InstanceMetadataEndpointState httpEndpoint) Indicates whether the IMDS endpoint for an instance is enabled or disabled.httpPutResponseHopLimit
(Integer httpPutResponseHopLimit) The maximum number of hops that the metadata token can travel.httpTokens
(String httpTokens) Indicates whether IMDSv2 is required.httpTokens
(HttpTokensState httpTokens) Indicates whether IMDSv2 is required.instanceMetadataTags
(String instanceMetadataTags) Indicates whether access to instance tags from the instance metadata is enabled or disabled.instanceMetadataTags
(InstanceMetadataTagsState instanceMetadataTags) Indicates whether access to instance tags from the instance metadata is enabled or disabled.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
httpPutResponseHopLimit
The maximum number of hops that the metadata token can travel.
- Parameters:
httpPutResponseHopLimit
- The maximum number of hops that the metadata token can travel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpEndpoint
Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
- Parameters:
httpEndpoint
- Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
httpEndpoint
Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
- Parameters:
httpEndpoint
- Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceMetadataTags
InstanceMetadataDefaultsResponse.Builder instanceMetadataTags(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-