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 newGcpComputeAuthenticationOptions
instance.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:
this
GcpComputeAuthenticationOptions.GcpComputeAuthenticationOptionsBuilder
.
-
serviceAccount
public GcpComputeAuthenticationOptions.GcpComputeAuthenticationOptionsBuilder serviceAccount(String serviceAccount) Configure the service account identifier. Uses thedefault
service account if left unconfigured.- Parameters:
serviceAccount
- must not be empty or null.- Returns:
this
GcpComputeAuthenticationOptions.GcpComputeAuthenticationOptionsBuilder
.
-
role
Configure the name of the role against which the login is being attempted.- Parameters:
role
- must not be empty or null.- Returns:
this
GcpComputeAuthenticationOptions.GcpComputeAuthenticationOptionsBuilder
.
-
build
Build a newGcpComputeAuthenticationOptions
instance.- Returns:
- a new
GcpComputeAuthenticationOptions
.
-