public static final class CopyDropletResponse.Builder extends Object
CopyDropletResponse.
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 |
|---|---|
CopyDropletResponse.Builder |
addAllBuildpacks(Iterable<? extends Buildpack> elements)
Adds elements to
buildpacks list. |
CopyDropletResponse |
build()
Builds a new
CopyDropletResponse. |
CopyDropletResponse.Builder |
buildpack(Buildpack element)
Adds one element to
buildpacks list. |
CopyDropletResponse.Builder |
buildpacks(Buildpack... elements)
Adds elements to
buildpacks list. |
CopyDropletResponse.Builder |
buildpacks(Iterable<? extends Buildpack> elements)
Sets or replaces all elements for
buildpacks list. |
CopyDropletResponse.Builder |
checksum(Checksum checksum)
Initializes the value for the
checksum attribute. |
CopyDropletResponse.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
CopyDropletResponse.Builder |
error(String error)
Initializes the value for the
error attribute. |
CopyDropletResponse.Builder |
executionMetadata(String executionMetadata)
Initializes the value for the
executionMetadata attribute. |
CopyDropletResponse.Builder |
from(org.cloudfoundry.client.v3.droplets._CopyDropletResponse instance)
Copy abstract value type
_CopyDropletResponse instance into builder. |
CopyDropletResponse.Builder |
from(CopyDropletResponse instance)
Fill a builder with attribute values from the provided
CopyDropletResponse instance. |
CopyDropletResponse.Builder |
from(Droplet instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.droplets.Droplet instance. |
CopyDropletResponse.Builder |
from(Resource instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.Resource instance. |
CopyDropletResponse.Builder |
id(String id)
Initializes the value for the
id attribute. |
CopyDropletResponse.Builder |
image(String image)
Initializes the value for the
image attribute. |
CopyDropletResponse.Builder |
lifecycle(Lifecycle lifecycle)
Initializes the value for the
lifecycle attribute. |
CopyDropletResponse.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
CopyDropletResponse.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
CopyDropletResponse.Builder |
links(Map<String,? extends Link> entries)
Sets or replaces all mappings from the specified map as entries for the
links map. |
CopyDropletResponse.Builder |
metadata(Metadata metadata)
Initializes the value for the
metadata attribute. |
CopyDropletResponse.Builder |
processType(Map.Entry<String,? extends String> entry)
Put one entry to the
processTypes map. |
CopyDropletResponse.Builder |
processType(String key,
String value)
Put one entry to the
processTypes map. |
CopyDropletResponse.Builder |
processTypes(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
processTypes map. |
CopyDropletResponse.Builder |
putAllLinks(Map<String,? extends Link> entries)
Put all mappings from the specified map as entries to
links map. |
CopyDropletResponse.Builder |
putAllProcessTypes(Map<String,? extends String> entries)
Put all mappings from the specified map as entries to
processTypes map. |
CopyDropletResponse.Builder |
relationships(DropletRelationships relationships)
Initializes the value for the
relationships attribute. |
CopyDropletResponse.Builder |
stack(String stack)
Initializes the value for the
stack attribute. |
CopyDropletResponse.Builder |
state(DropletState state)
Initializes the value for the
state attribute. |
CopyDropletResponse.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
public final CopyDropletResponse.Builder from(Droplet instance)
org.cloudfoundry.client.v3.droplets.Droplet instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CopyDropletResponse.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 CopyDropletResponse.Builder from(CopyDropletResponse instance)
CopyDropletResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CopyDropletResponse.Builder from(org.cloudfoundry.client.v3.droplets._CopyDropletResponse instance)
_CopyDropletResponse instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CopyDropletResponse.Builder createdAt(String createdAt)
createdAt attribute.createdAt - The value for createdAtthis builder for use in a chained invocationpublic final CopyDropletResponse.Builder id(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final CopyDropletResponse.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 CopyDropletResponse.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 CopyDropletResponse.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 CopyDropletResponse.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 CopyDropletResponse.Builder updatedAt(String updatedAt)
updatedAt attribute.updatedAt - The value for updatedAt (can be null)this builder for use in a chained invocationpublic final CopyDropletResponse.Builder buildpack(Buildpack element)
buildpacks list.element - A buildpacks elementthis builder for use in a chained invocationpublic final CopyDropletResponse.Builder buildpacks(Buildpack... elements)
buildpacks list.elements - An array of buildpacks elementsthis builder for use in a chained invocationpublic final CopyDropletResponse.Builder buildpacks(Iterable<? extends Buildpack> elements)
buildpacks list.elements - An iterable of buildpacks elementsthis builder for use in a chained invocationpublic final CopyDropletResponse.Builder addAllBuildpacks(Iterable<? extends Buildpack> elements)
buildpacks list.elements - An iterable of buildpacks elementsthis builder for use in a chained invocationpublic final CopyDropletResponse.Builder checksum(Checksum checksum)
checksum attribute.checksum - The value for checksum (can be null)this builder for use in a chained invocationpublic final CopyDropletResponse.Builder error(String error)
error attribute.error - The value for error (can be null)this builder for use in a chained invocationpublic final CopyDropletResponse.Builder executionMetadata(String executionMetadata)
executionMetadata attribute.executionMetadata - The value for executionMetadatathis builder for use in a chained invocationpublic final CopyDropletResponse.Builder image(String image)
image attribute.image - The value for image (can be null)this builder for use in a chained invocationpublic final CopyDropletResponse.Builder lifecycle(Lifecycle lifecycle)
lifecycle attribute.lifecycle - The value for lifecyclethis builder for use in a chained invocationpublic final CopyDropletResponse.Builder metadata(Metadata metadata)
metadata attribute.metadata - The value for metadata (can be null)this builder for use in a chained invocationpublic final CopyDropletResponse.Builder processType(String key, String value)
processTypes map.key - The key in the processTypes mapvalue - The associated value in the processTypes mapthis builder for use in a chained invocationpublic final CopyDropletResponse.Builder processType(Map.Entry<String,? extends String> entry)
processTypes map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final CopyDropletResponse.Builder processTypes(Map<String,? extends String> entries)
processTypes map. Nulls are not permitted as keys or values, but parameter itself can be nullentries - The entries that will be added to the processTypes mapthis builder for use in a chained invocationpublic final CopyDropletResponse.Builder putAllProcessTypes(Map<String,? extends String> entries)
processTypes map. Nulls are not permittedentries - The entries that will be added to the processTypes mapthis builder for use in a chained invocationpublic final CopyDropletResponse.Builder relationships(DropletRelationships relationships)
relationships attribute.relationships - The value for relationships (can be null)this builder for use in a chained invocationpublic final CopyDropletResponse.Builder stack(String stack)
stack attribute.stack - The value for stack (can be null)this builder for use in a chained invocationpublic final CopyDropletResponse.Builder state(DropletState state)
state attribute.state - The value for statethis builder for use in a chained invocationpublic CopyDropletResponse build()
CopyDropletResponse.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.