Class GcpComputeAuthenticationOptions.GcpComputeAuthenticationOptionsBuilder
java.lang.Object
org.springframework.vault.authentication.GcpComputeAuthenticationOptions.GcpComputeAuthenticationOptionsBuilder
- Enclosing class:
- GcpComputeAuthenticationOptions
public static class GcpComputeAuthenticationOptions.GcpComputeAuthenticationOptionsBuilder
extends Object
Builder for
GcpComputeAuthenticationOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a newGcpComputeAuthenticationOptionsinstance.Configure the mount path, defaults to aws.Configure the name of the role against which the login is being attempted.serviceAccount(String serviceAccount) Configure the service account identifier.
-
Method Details
-
path
Configure the mount path, defaults to aws.- Parameters:
path- must not be empty or null.- Returns:
thisGcpComputeAuthenticationOptions.GcpComputeAuthenticationOptionsBuilder.
-
serviceAccount
public GcpComputeAuthenticationOptions.GcpComputeAuthenticationOptionsBuilder serviceAccount(String serviceAccount) Configure the service account identifier. Uses thedefaultservice account if left unconfigured.- Parameters:
serviceAccount- must not be empty or null.- Returns:
thisGcpComputeAuthenticationOptions.GcpComputeAuthenticationOptionsBuilder.
-
role
Configure the name of the role against which the login is being attempted.- Parameters:
role- must not be empty or null.- Returns:
thisGcpComputeAuthenticationOptions.GcpComputeAuthenticationOptionsBuilder.
-
build
Build a newGcpComputeAuthenticationOptionsinstance.- Returns:
- a new
GcpComputeAuthenticationOptions.
-