public static final class UpdateSecretAction.Builder extends Object
UpdateSecretAction
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
Modifier and Type | Method and Description |
---|---|
UpdateSecretAction |
build()
Builds a new
UpdateSecretAction . |
UpdateSecretAction.Builder |
clientId(String clientId)
Initializes the value for the
clientId attribute. |
UpdateSecretAction.Builder |
from(UpdateSecretAction instance)
Fill a builder with attribute values from the provided
UpdateSecretAction instance. |
UpdateSecretAction.Builder |
secret(String secret)
Initializes the value for the
secret attribute. |
public final UpdateSecretAction.Builder from(UpdateSecretAction instance)
UpdateSecretAction
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final UpdateSecretAction.Builder clientId(String clientId)
clientId
attribute.clientId
- The value for clientIdthis
builder for use in a chained invocationpublic final UpdateSecretAction.Builder secret(String secret)
secret
attribute.secret
- The value for secretthis
builder for use in a chained invocationpublic UpdateSecretAction build()
UpdateSecretAction
.IllegalStateException
- if any required attributes are missingCopyright © 2018 Pivotal Software, Inc.. All rights reserved.