B - the Builder TypeT - the Ec2MetadataClient Typepublic interface Ec2MetadataClientBuilder<B,T> extends SdkBuilder<Ec2MetadataClientBuilder<B,T>,T>
| Modifier and Type | Method and Description |
|---|---|
B |
endpoint(URI endpoint)
Define the endpoint of IMDS.
|
B |
endpointMode(EndpointMode endpointMode)
Define the endpoint mode of IMDS.
|
B |
retryPolicy(Consumer<Ec2MetadataRetryPolicy.Builder> builderConsumer)
Define the retry policy which includes the number of retry attempts for any failed request.
|
B |
retryPolicy(Ec2MetadataRetryPolicy retryPolicy)
Define the retry policy which includes the number of retry attempts for any failed request.
|
B |
tokenTtl(Duration tokenTtl)
Define the Time to live (TTL) of the token.
|
applyMutation, buildB retryPolicy(Ec2MetadataRetryPolicy retryPolicy)
If not specified, defaults to 3 retry attempts and a BackoffStrategy.defaultStrategy() backoff strategy} that
uses RetryMode.STANDARD. Can be also specified by using the
retryPolicy(Consumer) method. if any of the retryPolicy methods are called multiple times,
only the last invocation will be considered.
retryPolicy - The retry policy which includes the number of retry attempts for any failed request.B retryPolicy(Consumer<Ec2MetadataRetryPolicy.Builder> builderConsumer)
retryPolicy(Ec2MetadataRetryPolicy) to use a "fluent consumer" syntax. User
should not manually build the builder in the consumer.
If not specified, defaults to 3 retry attempts and a BackoffStrategy.defaultStrategy() backoff strategy} that
uses RetryMode.STANDARD. Can be also specified by using the
retryPolicy(Ec2MetadataRetryPolicy) method. if any of the retryPolicy methods are
called multiple times, only the last invocation will be considered.
builderConsumer - the consumerB endpoint(URI endpoint)
If not specified, the IMDS client will attempt to automatically resolve the endpoint value
based on the logic of Ec2MetadataEndpointProvider.
endpoint - The endpoint of IMDS.B tokenTtl(Duration tokenTtl)
tokenTtl - The Time to live (TTL) of the token.B endpointMode(EndpointMode endpointMode)
endpoint(URI) is not specified. Only one of both endpoint or endpoint mode
but not both. If both are specified in the Builder, a IllegalArgumentException will be thrown.
If not specified, the IMDS client will attempt to automatically resolve the endpoint mode value
based on the logic of Ec2MetadataEndpointProvider.
endpointMode - The endpoint mode of IMDS. Supported values include IPv4 and IPv6.Copyright © 2023. All rights reserved.