@InterfaceAudience.Private @InterfaceStability.Unstable public class CredentialBuilder extends Object implements Builder<Credential>
Credential.
The properties of the builder can only be set once, an attempt to set them a second time will trigger
an IllegalStateException. The properties that are lists are an exception to this rule, of course multiple
elements can be added / removed.
Builder instances can be used to build several elements, although properties already set cannot be changed after
a call to build() either.
| Modifier and Type | Method and Description |
|---|---|
Credential |
build()
Builds and returns an object.
|
static CredentialBuilder |
create() |
static CredentialBuilder |
createFromExisting(Credential credential) |
CredentialBuilder |
withConfigurationEntry(String name,
String description) |
CredentialBuilder |
withName(String name) |
CredentialBuilder |
withType(String type) |
public static CredentialBuilder create()
public static CredentialBuilder createFromExisting(Credential credential)
public CredentialBuilder withName(String name)
public CredentialBuilder withType(String type)
public CredentialBuilder withConfigurationEntry(String name, String description)
public Credential build()
Builderbuild in interface Builder<Credential>Copyright © 2021 Apache Software Foundation. All rights reserved.