public static final class BuildResource.Builder extends Object
BuildResource.
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 |
|---|---|
BuildResource |
build()
Builds a new
BuildResource. |
BuildResource.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
BuildResource.Builder |
createdBy(CreatedBy createdBy)
Initializes the value for the
createdBy attribute. |
BuildResource.Builder |
droplet(Droplet droplet)
Initializes the value for the
droplet attribute. |
BuildResource.Builder |
error(String error)
Initializes the value for the
error attribute. |
BuildResource.Builder |
from(org.cloudfoundry.client.v3.builds._BuildResource instance)
Copy abstract value type
_BuildResource instance into builder. |
BuildResource.Builder |
from(Build instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.builds.Build instance. |
BuildResource.Builder |
from(BuildResource instance)
Fill a builder with attribute values from the provided
BuildResource instance. |
BuildResource.Builder |
from(Resource instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.Resource instance. |
BuildResource.Builder |
id(String id)
Initializes the value for the
id attribute. |
BuildResource.Builder |
inputPackage(Relationship inputPackage)
Initializes the value for the
inputPackage attribute. |
BuildResource.Builder |
lifecycle(Lifecycle lifecycle)
Initializes the value for the
lifecycle attribute. |
BuildResource.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
BuildResource.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
BuildResource.Builder |
links(Map<String,? extends Link> entries)
Sets or replaces all mappings from the specified map as entries for the
links map. |
BuildResource.Builder |
metadata(Metadata metadata)
Initializes the value for the
metadata attribute. |
BuildResource.Builder |
putAllLinks(Map<String,? extends Link> entries)
Put all mappings from the specified map as entries to
links map. |
BuildResource.Builder |
relationships(BuildRelationships relationships)
Initializes the value for the
relationships attribute. |
BuildResource.Builder |
state(BuildState state)
Initializes the value for the
state attribute. |
BuildResource.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
public final BuildResource.Builder from(Build instance)
org.cloudfoundry.client.v3.builds.Build instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final BuildResource.Builder from(Resource instance)
org.cloudfoundry.client.v3.Resource instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final BuildResource.Builder from(BuildResource instance)
BuildResource instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final BuildResource.Builder from(org.cloudfoundry.client.v3.builds._BuildResource instance)
_BuildResource instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final BuildResource.Builder createdAt(String createdAt)
createdAt attribute.createdAt - The value for createdAtthis builder for use in a chained invocationpublic final BuildResource.Builder id(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final BuildResource.Builder link(String key, Link value)
links map.key - The key in the links mapvalue - The associated value in the links mapthis builder for use in a chained invocationpublic final BuildResource.Builder link(Map.Entry<String,? extends Link> entry)
links map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final BuildResource.Builder links(Map<String,? extends Link> entries)
links map. Nulls are not permittedentries - The entries that will be added to the links mapthis builder for use in a chained invocationpublic final BuildResource.Builder putAllLinks(Map<String,? extends Link> entries)
links map. Nulls are not permittedentries - The entries that will be added to the links mapthis builder for use in a chained invocationpublic final BuildResource.Builder updatedAt(String updatedAt)
updatedAt attribute.updatedAt - The value for updatedAt (can be null)this builder for use in a chained invocationpublic final BuildResource.Builder createdBy(CreatedBy createdBy)
createdBy attribute.createdBy - The value for createdBythis builder for use in a chained invocationpublic final BuildResource.Builder droplet(Droplet droplet)
droplet attribute.droplet - The value for droplet (can be null)this builder for use in a chained invocationpublic final BuildResource.Builder error(String error)
error attribute.error - The value for error (can be null)this builder for use in a chained invocationpublic final BuildResource.Builder inputPackage(Relationship inputPackage)
inputPackage attribute.inputPackage - The value for inputPackagethis builder for use in a chained invocationpublic final BuildResource.Builder lifecycle(Lifecycle lifecycle)
lifecycle attribute.lifecycle - The value for lifecyclethis builder for use in a chained invocationpublic final BuildResource.Builder metadata(Metadata metadata)
metadata attribute.metadata - The value for metadata (can be null)this builder for use in a chained invocationpublic final BuildResource.Builder relationships(BuildRelationships relationships)
relationships attribute.relationships - The value for relationships (can be null)this builder for use in a chained invocationpublic final BuildResource.Builder state(BuildState state)
state attribute.state - The value for statethis builder for use in a chained invocationpublic BuildResource build()
BuildResource.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.