protected abstract static class CredHubRequest.CredHubRequestBuilder<T,R extends CredHubRequest<T>,B extends CredHubRequest.CredHubRequestBuilder<T,R,B>>
extends java.lang.Object
CredHubRequests.| Modifier | Constructor and Description |
|---|---|
protected |
CredHubRequest.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 |
name(CredentialName name)
Set the
CredentialName for the credential. |
B |
overwrite(boolean overwrite)
Sets a boolean value indicating whether CredHub should create a new
credential or update and existing credential.
|
B |
permission(CredentialPermission permission)
Add an
CredentialPermission to the permissions that will be assigned to the
credential. |
B |
permissions(java.util.Collection<? extends CredentialPermission> permissions)
Add a collection of
CredentialPermissions to the controls that will be
assigned to the credential. |
B |
permissions(CredentialPermission... permissions)
Add a collection of
CredentialPermissions to the controls that will be
assigned to the credential. |
protected final R extends CredHubRequest<T> targetObj
protected CredHubRequest.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)
overwrite - false to create a new credential, or
true to update and existing credentialpublic B permission(CredentialPermission permission)
CredentialPermission to the permissions that will be assigned to the
credential.permission - a CredentialPermission to assign to the
credentialpublic B permissions(java.util.Collection<? extends CredentialPermission> permissions)
CredentialPermissions to the controls that will be
assigned to the credential.permissions - a collection of CredentialPermissions to
assign to the credentialpublic B permissions(CredentialPermission... permissions)
CredentialPermissions to the controls that will be
assigned to the credential.permissions - a collection of CredentialPermissions to
assign to the credentialpublic R build()
CredHubRequest from the provided values.CredHubRequest