Package software.amazon.awssdk.regions
Class ServiceMetadataConfiguration.Builder
java.lang.Object
software.amazon.awssdk.regions.ServiceMetadataConfiguration.Builder
- Enclosing class:
ServiceMetadataConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionadvancedOptions
(Map<ServiceMetadataAdvancedOption<?>, ?> advancedOptions) Configure an advanced override option.build()
Build theServiceMetadata
instance with the updated configuration.profileFile
(Supplier<ProfileFile> profileFile) Configure the profile file used by some services to calculate the endpoint from the region.profileName
(String profileName) Configure which profile in theprofileFile(Supplier)
should be usedto calculate the endpoint from the region.putAdvancedOption
(ServiceMetadataAdvancedOption<T> option, T value) Configure the map of advanced override options.
-
Method Details
-
profileFile
Configure the profile file used by some services to calculate the endpoint from the region. The supplier is only invoked zero or one time, and only the first time the value is needed. If this is null, theProfileFile.defaultProfileFile()
is used. -
profileName
Configure which profile in theprofileFile(Supplier)
should be usedto calculate the endpoint from the region. If this is null, theProfileFileSystemSetting.AWS_PROFILE
is used. -
putAdvancedOption
public <T> ServiceMetadataConfiguration.Builder putAdvancedOption(ServiceMetadataAdvancedOption<T> option, T value) Configure the map of advanced override options. This will override all values currently configured. The values in the map must match the key type of the map, or a runtime exception will be raised. -
advancedOptions
public ServiceMetadataConfiguration.Builder advancedOptions(Map<ServiceMetadataAdvancedOption<?>, ?> advancedOptions) Configure an advanced override option.- See Also:
-
build
Build theServiceMetadata
instance with the updated configuration.
-