Class AwsClientEndpointProvider.Builder
- java.lang.Object
-
- software.amazon.awssdk.awscore.endpoint.AwsClientEndpointProvider.Builder
-
- Enclosing class:
- AwsClientEndpointProvider
public static final class AwsClientEndpointProvider.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsClientEndpointProvider
build()
AwsClientEndpointProvider.Builder
clientEndpointOverride(URI clientEndpointOverride)
Set the endpoint that was overridden by the customer usingSdkClientBuilder.endpointOverride(URI)
.AwsClientEndpointProvider.Builder
defaultProtocol(String protocol)
Set the protocol to be used for endpoints returned byServiceMetadata.of(String)
.AwsClientEndpointProvider.Builder
dualstackEnabled(Boolean dualstackEnabled)
Whether dualstack endpoints should be used when resolving withServiceMetadata.of(String)
.AwsClientEndpointProvider.Builder
fipsEnabled(Boolean fipsEnabled)
Whether FIPS endpoints should be used when resolving withServiceMetadata.of(String)
.AwsClientEndpointProvider.Builder
profileFile(Supplier<ProfileFile> profileFile)
Set the profile file supplier that will supply the customer's profile file.AwsClientEndpointProvider.Builder
profileName(String profileName)
Set the profile name for the profile that should be used .<T> AwsClientEndpointProvider.Builder
putAdvancedOption(ServiceMetadataAdvancedOption<T> option, T value)
Specify advanced options that should be passed on to theServiceMetadata
.AwsClientEndpointProvider.Builder
region(Region region)
The region to use when resolving withServiceMetadata.of(String)
.AwsClientEndpointProvider.Builder
serviceEndpointOverrideEnvironmentVariable(String serviceEndpointOverrideEnvironmentVariable)
Set the service-specific environment variable that should be used to load the endpoint override for this service.AwsClientEndpointProvider.Builder
serviceEndpointOverrideSystemProperty(String serviceEndpointOverrideSystemProperty)
Set the service-specific system property that should be used to load the endpoint override for this service.AwsClientEndpointProvider.Builder
serviceEndpointPrefix(String serviceEndpointPrefix)
Set the service endpoint prefix, as it is expected byServiceMetadata.of(String)
.AwsClientEndpointProvider.Builder
serviceProfileProperty(String serviceProfileProperty)
Set the service-specific profile property that should be used to load the endpoint override for this service.
-
-
-
Method Detail
-
clientEndpointOverride
public AwsClientEndpointProvider.Builder clientEndpointOverride(URI 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
public AwsClientEndpointProvider.Builder serviceProfileProperty(String 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
public AwsClientEndpointProvider.Builder profileFile(Supplier<ProfileFile> 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
public AwsClientEndpointProvider.Builder profileName(String 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
public AwsClientEndpointProvider.Builder serviceEndpointPrefix(String 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
public AwsClientEndpointProvider.Builder defaultProtocol(String protocol)
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
public AwsClientEndpointProvider.Builder region(Region 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
public AwsClientEndpointProvider.Builder dualstackEnabled(Boolean 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
public AwsClientEndpointProvider.Builder fipsEnabled(Boolean 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
public AwsClientEndpointProvider build()
-
-