T
- the type of CredHub credentialR
- the type of the concrete CredHubRequest
B
- the type of the concrete builderprotected abstract static class CredHubRequest.CredHubRequestBuilder<T,R extends CredHubRequest<T>,B extends CredHubRequest.CredHubRequestBuilder<T,R,B>> extends Object
CredHubRequest
s.Modifier | Constructor and Description |
---|---|
protected |
CredHubRequestBuilder()
Create a
CredHubRequest.CredHubRequestBuilder . |
Modifier and Type | Method and Description |
---|---|
R |
build()
Create a
CredHubRequest from the provided values. |
protected abstract B |
createBuilder()
Provide the concrete builder.
|
protected abstract R |
createTarget()
Provide the concrete object to build.
|
B |
mode(WriteMode mode)
Sets a value indicating the action CredHub should take when a credential being
written or generated already exists.
|
B |
name(CredentialName name)
Set the
CredentialName for the credential. |
B |
overwrite(boolean overwrite)
Deprecated.
as of CredHub 1.6, use
mode(WriteMode) |
B |
permission(Permission permission)
Deprecated.
as of CredHub 2.0, use
CredHubPermissionOperations to
assign permissions to a credential after it is created |
B |
permissions(Collection<? extends Permission> permissions)
Deprecated.
as of CredHub 2.0, use
CredHubPermissionOperations to
assign permissions to a credential after it is created |
B |
permissions(Permission... permissions)
Deprecated.
as of CredHub 2.0, use
CredHubPermissionOperations to
assign permissions to a credential after it is created |
protected final R extends CredHubRequest<T> targetObj
protected CredHubRequestBuilder()
CredHubRequest.CredHubRequestBuilder
. Intended for internal use.protected abstract R createTarget()
protected abstract B createBuilder()
public B name(CredentialName name)
CredentialName
for the credential.name
- the credential name; must not be nullpublic B overwrite(boolean overwrite)
mode(WriteMode)
overwrite
- false to create a new credential, or
true to update and existing credentialpublic B mode(WriteMode mode)
mode
- the WriteMode
to use when a credential existspublic B permission(Permission permission)
CredHubPermissionOperations
to
assign permissions to a credential after it is createdPermission
to the permissions that will be assigned to the
credential.permission
- a Permission
to assign to the credentialpublic B permissions(Collection<? extends Permission> permissions)
CredHubPermissionOperations
to
assign permissions to a credential after it is createdPermission
s to the controls that will be assigned
to the credential.permissions
- a collection of Permission
s to assign to the
credentialpublic B permissions(Permission... permissions)
CredHubPermissionOperations
to
assign permissions to a credential after it is createdPermission
s to the controls that will be assigned
to the credential.permissions
- a collection of Permission
s to assign to the
credentialpublic R build()
CredHubRequest
from the provided values.CredHubRequest