Class AwsClientEndpointProvider.Builder
- Enclosing class:
AwsClientEndpointProvider
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clientEndpointOverride
(URI clientEndpointOverride) Set the endpoint that was overridden by the customer usingSdkClientBuilder.endpointOverride(URI)
.defaultProtocol
(String protocol) Set the protocol to be used for endpoints returned byServiceMetadata.of(String)
.dualstackEnabled
(Boolean dualstackEnabled) Whether dualstack endpoints should be used when resolving withServiceMetadata.of(String)
.fipsEnabled
(Boolean fipsEnabled) Whether FIPS endpoints should be used when resolving withServiceMetadata.of(String)
.profileFile
(Supplier<ProfileFile> profileFile) Set the profile file supplier that will supply the customer's profile file.profileName
(String profileName) Set the profile name for the profile that should be used .putAdvancedOption
(ServiceMetadataAdvancedOption<T> option, T value) Specify advanced options that should be passed on to theServiceMetadata
.The region to use when resolving withServiceMetadata.of(String)
.serviceEndpointOverrideEnvironmentVariable
(String serviceEndpointOverrideEnvironmentVariable) Set the service-specific environment variable that should be used to load the endpoint override for this service.serviceEndpointOverrideSystemProperty
(String serviceEndpointOverrideSystemProperty) Set the service-specific system property that should be used to load the endpoint override for this service.serviceEndpointPrefix
(String serviceEndpointPrefix) Set the service endpoint prefix, as it is expected byServiceMetadata.of(String)
.serviceProfileProperty
(String serviceProfileProperty) Set the service-specific profile property that should be used to load the endpoint override for this service.
-
Method Details
-
clientEndpointOverride
Set the endpoint that was overridden by the customer usingSdkClientBuilder.endpointOverride(URI)
.If specified, this provider will behave the same as
ClientEndpointProvider.forEndpointOverride(URI)
. Other configured values will not be used. -
serviceEndpointOverrideEnvironmentVariable
public AwsClientEndpointProvider.Builder serviceEndpointOverrideEnvironmentVariable(String serviceEndpointOverrideEnvironmentVariable) Set the service-specific environment variable that should be used to load the endpoint override for this service.If this value is set,
serviceEndpointOverrideSystemProperty
andserviceProfileProperty
must also be set.If this value is not set, loading the service endpoint from the environment is skipped.
-
serviceEndpointOverrideSystemProperty
public AwsClientEndpointProvider.Builder serviceEndpointOverrideSystemProperty(String serviceEndpointOverrideSystemProperty) Set the service-specific system property that should be used to load the endpoint override for this service.If this value is set,
serviceEndpointOverrideEnvironmentVariable
andserviceProfileProperty
must also be set.If this value is not set, loading the service endpoint from the environment is skipped.
-
serviceProfileProperty
Set the service-specific profile property that should be used to load the endpoint override for this service.If this value is set,
serviceEndpointOverrideEnvironmentVariable
andserviceEndpointOverrideSystemProperty
must also be set.If this value is not set, loading the service endpoint from the environment is skipped.
-
profileFile
Set the profile file supplier that will supply the customer's profile file. This profile file is used both for checking for the endpoint override and when resolving the endpoint fromServiceMetadata
.If this value is not set, the
ProfileFile.defaultProfileFile()
is used. -
profileName
Set the profile name for the profile that should be used . This profile is used both for checking for the endpoint override and when resolving the endpoint fromServiceMetadata
.If this value is not set,
ProfileFileSystemSetting.AWS_PROFILE
is used. -
serviceEndpointPrefix
Set the service endpoint prefix, as it is expected byServiceMetadata.of(String)
.This value will only be used if the endpoint is loaded from service metadata.
If this value is set,
defaultProtocol(java.lang.String)
andregion
must also be set. If this value is not set, loading the service endpoint from service metadata is skipped. -
defaultProtocol
Set the protocol to be used for endpoints returned byServiceMetadata.of(String)
.This value will only be used if the endpoint is loaded from service metadata.
If this value is set,
serviceEndpointPrefix
andregion
must also be set. If this value is not set, loading the service endpoint from service metadata is skipped. -
region
The region to use when resolving withServiceMetadata.of(String)
.This value will only be used if the region is loaded from service metadata.
If this value is set,
serviceEndpointPrefix
anddefaultProtocol(java.lang.String)
must also be set. If this value is not set, loading the service endpoint from service metadata is skipped. -
dualstackEnabled
Whether dualstack endpoints should be used when resolving withServiceMetadata.of(String)
.This value will only be used if the endpoint is loaded from service metadata.
If this value is not set, the
DualstackEnabledProvider
will be used. -
fipsEnabled
Whether FIPS endpoints should be used when resolving withServiceMetadata.of(String)
.This value will only be used if the endpoint is loaded from service metadata.
If this value is not set, the
FipsEnabledProvider
will be used. -
putAdvancedOption
public <T> AwsClientEndpointProvider.Builder putAdvancedOption(ServiceMetadataAdvancedOption<T> option, T value) Specify advanced options that should be passed on to theServiceMetadata
.This value will only be used if the endpoint is loaded from service metadata.
-
build
-