public static final class CreateDeploymentResponse.Builder extends Object
CreateDeploymentResponse.
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 |
|---|---|
CreateDeploymentResponse.Builder |
addAllNewProcesses(Iterable<? extends Process> elements)
Adds elements to
newProcesses list. |
CreateDeploymentResponse.Builder |
application(ToOneRelationship application)
Initializes the value for the
application attribute. |
CreateDeploymentResponse |
build()
Builds a new
CreateDeploymentResponse. |
CreateDeploymentResponse.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
CreateDeploymentResponse.Builder |
droplet(Relationship droplet)
Initializes the value for the
droplet attribute. |
CreateDeploymentResponse.Builder |
from(org.cloudfoundry.client.v3.deployments._CreateDeploymentResponse instance)
Copy abstract value type
_CreateDeploymentResponse instance into builder. |
CreateDeploymentResponse.Builder |
from(CreateDeploymentResponse instance)
Fill a builder with attribute values from the provided
CreateDeploymentResponse instance. |
CreateDeploymentResponse.Builder |
from(Deployment instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.deployments.Deployment instance. |
CreateDeploymentResponse.Builder |
from(Resource instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.Resource instance. |
CreateDeploymentResponse.Builder |
id(String id)
Initializes the value for the
id attribute. |
CreateDeploymentResponse.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
CreateDeploymentResponse.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
CreateDeploymentResponse.Builder |
links(Map<String,? extends Link> entries)
Sets or replaces all mappings from the specified map as entries for the
links map. |
CreateDeploymentResponse.Builder |
metadata(Metadata metadata)
Initializes the value for the
metadata attribute. |
CreateDeploymentResponse.Builder |
newProcesse(Process element)
Adds one element to
newProcesses list. |
CreateDeploymentResponse.Builder |
newProcesses(Iterable<? extends Process> elements)
Sets or replaces all elements for
newProcesses list. |
CreateDeploymentResponse.Builder |
newProcesses(Process... elements)
Adds elements to
newProcesses list. |
CreateDeploymentResponse.Builder |
previousDroplet(Relationship previousDroplet)
Initializes the value for the
previousDroplet attribute. |
CreateDeploymentResponse.Builder |
putAllLinks(Map<String,? extends Link> entries)
Put all mappings from the specified map as entries to
links map. |
CreateDeploymentResponse.Builder |
relationships(DeploymentRelationships relationships)
Initializes the value for the
relationships attribute. |
CreateDeploymentResponse.Builder |
revision(Revision revision)
Initializes the value for the
revision attribute. |
CreateDeploymentResponse.Builder |
state(DeploymentState state)
Deprecated.
|
CreateDeploymentResponse.Builder |
status(Status status)
Initializes the value for the
status attribute. |
CreateDeploymentResponse.Builder |
strategy(DeploymentStrategy strategy)
Initializes the value for the
strategy attribute. |
CreateDeploymentResponse.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
public final CreateDeploymentResponse.Builder from(Deployment instance)
org.cloudfoundry.client.v3.deployments.Deployment instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CreateDeploymentResponse.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 CreateDeploymentResponse.Builder from(CreateDeploymentResponse instance)
CreateDeploymentResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder from(org.cloudfoundry.client.v3.deployments._CreateDeploymentResponse instance)
_CreateDeploymentResponse instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder createdAt(String createdAt)
createdAt attribute.createdAt - The value for createdAtthis builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder id(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final CreateDeploymentResponse.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 CreateDeploymentResponse.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 CreateDeploymentResponse.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 CreateDeploymentResponse.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 CreateDeploymentResponse.Builder updatedAt(String updatedAt)
updatedAt attribute.updatedAt - The value for updatedAt (can be null)this builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder application(ToOneRelationship application)
application attribute.application - The value for application (can be null)this builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder droplet(Relationship droplet)
droplet attribute.droplet - The value for droplet (can be null)this builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder metadata(Metadata metadata)
metadata attribute.metadata - The value for metadata (can be null)this builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder newProcesse(Process element)
newProcesses list.element - A newProcesses elementthis builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder newProcesses(Process... elements)
newProcesses list.elements - An array of newProcesses elementsthis builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder newProcesses(Iterable<? extends Process> elements)
newProcesses list.elements - An iterable of newProcesses elementsthis builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder addAllNewProcesses(Iterable<? extends Process> elements)
newProcesses list.elements - An iterable of newProcesses elementsthis builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder previousDroplet(Relationship previousDroplet)
previousDroplet attribute.previousDroplet - The value for previousDroplet (can be null)this builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder relationships(DeploymentRelationships relationships)
relationships attribute.relationships - The value for relationships (can be null)this builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder revision(Revision revision)
revision attribute.revision - The value for revision (can be null)this builder for use in a chained invocation@Deprecated public final CreateDeploymentResponse.Builder state(DeploymentState state)
state attribute.state - The value for statethis builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder status(Status status)
status attribute.status - The value for status (can be null)this builder for use in a chained invocationpublic final CreateDeploymentResponse.Builder strategy(DeploymentStrategy strategy)
strategy attribute.strategy - The value for strategy (can be null)this builder for use in a chained invocationpublic CreateDeploymentResponse build()
CreateDeploymentResponse.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.