public final class SphereClientConfigBuilder extends Base implements Builder<SphereClientConfig>
Modifier and Type | Method and Description |
---|---|
SphereClientConfigBuilder |
apiUrl(String apiUrl) |
SphereClientConfigBuilder |
authUrl(String authUrl) |
SphereClientConfig |
build()
Creates a new instance of T with the values of this builder.
|
SphereClientConfigBuilder |
clientId(String clientId) |
SphereClientConfigBuilder |
clientSecret(String clientSecret) |
SphereClientConfigBuilder |
correlationIdGenerator(CorrelationIdGenerator correlationIdGenerator) |
static SphereClientConfigBuilder |
ofClientConfig(SphereClientConfig config) |
static SphereClientConfigBuilder |
ofKeyIdSecret(String projectKey,
String clientId,
String clientSecret) |
SphereClientConfigBuilder |
projectKey(String projectKey) |
SphereClientConfigBuilder |
scopes(List<SphereScope> scopes) |
SphereClientConfigBuilder |
scopeStrings(List<String> scopes) |
public static SphereClientConfigBuilder ofClientConfig(SphereClientConfig config)
public static SphereClientConfigBuilder ofKeyIdSecret(String projectKey, String clientId, String clientSecret)
public SphereClientConfigBuilder projectKey(String projectKey)
public SphereClientConfigBuilder clientId(String clientId)
public SphereClientConfigBuilder clientSecret(String clientSecret)
public SphereClientConfigBuilder apiUrl(String apiUrl)
public SphereClientConfigBuilder authUrl(String authUrl)
public SphereClientConfigBuilder scopes(List<SphereScope> scopes)
public SphereClientConfigBuilder scopeStrings(List<String> scopes)
public SphereClientConfigBuilder correlationIdGenerator(CorrelationIdGenerator correlationIdGenerator)
public SphereClientConfig build()
Builder
build
in interface Builder<SphereClientConfig>