| Modifier and Type | Method and Description |
|---|---|
Approval |
build()
Builds a new
Approval. |
Approval.Builder |
clientId(String clientId)
Initializes the value for the
clientId attribute. |
Approval.Builder |
expiresAt(String expiresAt)
Initializes the value for the
expiresAt attribute. |
Approval.Builder |
from(Approval instance)
Fill a builder with attribute values from the provided
Approval instance. |
Approval.Builder |
lastUpdatedAt(String lastUpdatedAt)
Initializes the value for the
lastUpdatedAt attribute. |
Approval.Builder |
scope(String scope)
Initializes the value for the
scope attribute. |
Approval.Builder |
status(ApprovalStatus status)
Initializes the value for the
status attribute. |
Approval.Builder |
userId(String userId)
Initializes the value for the
userId attribute. |
public final Approval.Builder from(Approval instance)
Approval 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 Approval.Builder clientId(String clientId)
clientId attribute.clientId - The value for clientIdthis builder for use in a chained invocationpublic final Approval.Builder expiresAt(String expiresAt)
expiresAt attribute.expiresAt - The value for expiresAtthis builder for use in a chained invocationpublic final Approval.Builder lastUpdatedAt(String lastUpdatedAt)
lastUpdatedAt attribute.lastUpdatedAt - The value for lastUpdatedAtthis builder for use in a chained invocationpublic final Approval.Builder scope(String scope)
scope attribute.scope - The value for scopethis builder for use in a chained invocationpublic final Approval.Builder status(ApprovalStatus status)
status attribute.status - The value for statusthis builder for use in a chained invocationpublic final Approval.Builder userId(String userId)
userId attribute.userId - The value for userIdthis builder for use in a chained invocationpublic Approval build()
Approval.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.