Package software.amazon.awssdk.regions
Class ServiceMetadataConfiguration.Builder
- java.lang.Object
-
- software.amazon.awssdk.regions.ServiceMetadataConfiguration.Builder
-
- Enclosing class:
- ServiceMetadataConfiguration
public static final class ServiceMetadataConfiguration.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceMetadataConfiguration.BuilderadvancedOptions(Map<ServiceMetadataAdvancedOption<?>,?> advancedOptions)Configure an advanced override option.ServiceMetadataConfigurationbuild()Build theServiceMetadatainstance with the updated configuration.ServiceMetadataConfiguration.BuilderprofileFile(Supplier<ProfileFile> profileFile)Configure the profile file used by some services to calculate the endpoint from the region.ServiceMetadataConfiguration.BuilderprofileName(String profileName)Configure which profile in theprofileFile(Supplier)should be usedto calculate the endpoint from the region.<T> ServiceMetadataConfiguration.BuilderputAdvancedOption(ServiceMetadataAdvancedOption<T> option, T value)Configure the map of advanced override options.
-
-
-
Method Detail
-
profileFile
public ServiceMetadataConfiguration.Builder profileFile(Supplier<ProfileFile> 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
public ServiceMetadataConfiguration.Builder profileName(String profileName)
Configure which profile in theprofileFile(Supplier)should be usedto calculate the endpoint from the region. If this is null, theProfileFileSystemSetting.AWS_PROFILEis 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:
ServiceMetadataAdvancedOption
-
build
public ServiceMetadataConfiguration build()
Build theServiceMetadatainstance with the updated configuration.
-
-