com.github.davidmoten.aws.lw.client.BaseUrlFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-lightweight-client-java Show documentation
Show all versions of aws-lightweight-client-java Show documentation
Lightweight client for all AWS services (but still with useful builders and XML parser)
The newest version!
package com.github.davidmoten.aws.lw.client;
import java.util.Optional;
@FunctionalInterface
public interface BaseUrlFactory {
String create(String serviceName, Optional region);
public static final BaseUrlFactory DEFAULT = (serviceName, region) -> "https://" //
+ serviceName //
+ region.map(x -> "." + x).orElse("") //
+ ".amazonaws.com/";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy