Package glide.api.models.configuration
Class ServerCredentials.ServerCredentialsBuilder
- java.lang.Object
-
- glide.api.models.configuration.ServerCredentials.ServerCredentialsBuilder
-
- Enclosing class:
- ServerCredentials
public static class ServerCredentials.ServerCredentialsBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerCredentialsbuild()ServerCredentials.ServerCredentialsBuilderiamConfig(IamAuthConfig iamConfig)IAM authentication configuration.ServerCredentials.ServerCredentialsBuilderpassword(java.lang.String password)The password that will be used for authenticating connections to the servers.java.lang.StringtoString()ServerCredentials.ServerCredentialsBuilderusername(java.lang.String username)The username that will be used for authenticating connections to the servers.
-
-
-
Method Detail
-
password
public ServerCredentials.ServerCredentialsBuilder password(java.lang.String password)
The password that will be used for authenticating connections to the servers. Mutually exclusive withiamConfig.- Returns:
this.
-
username
public ServerCredentials.ServerCredentialsBuilder username(java.lang.String username)
The username that will be used for authenticating connections to the servers. If not supplied for password-based authentication, "default" will be used. Required for IAM authentication.- Returns:
this.
-
iamConfig
public ServerCredentials.ServerCredentialsBuilder iamConfig(IamAuthConfig iamConfig)
IAM authentication configuration. Mutually exclusive withpassword. The client will automatically generate and refresh the authentication token based on the provided configuration.- Returns:
this.
-
build
public ServerCredentials build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-