public static final class ApplicationResource.Builder extends Object
ApplicationResource
.
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 |
---|---|
ApplicationResource |
build()
Builds a new
ApplicationResource . |
ApplicationResource.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
ApplicationResource.Builder |
from(Application instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.applications.Application instance. |
ApplicationResource.Builder |
from(ApplicationResource instance)
Fill a builder with attribute values from the provided
ApplicationResource instance. |
ApplicationResource.Builder |
from(Resource instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.Resource instance. |
ApplicationResource.Builder |
id(String id)
Initializes the value for the
id attribute. |
ApplicationResource.Builder |
lifecycle(Lifecycle lifecycle)
Initializes the value for the
lifecycle attribute. |
ApplicationResource.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
ApplicationResource.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
ApplicationResource.Builder |
links(Map<String,? extends Link> links)
Sets or replaces all mappings from the specified map as entries for the
links map. |
ApplicationResource.Builder |
name(String name)
Initializes the value for the
name attribute. |
ApplicationResource.Builder |
putAllLinks(Map<String,? extends Link> links)
Put all mappings from the specified map as entries to
links map. |
ApplicationResource.Builder |
relationships(ApplicationRelationships relationships)
Initializes the value for the
relationships attribute. |
ApplicationResource.Builder |
state(ApplicationState state)
Initializes the value for the
state attribute. |
ApplicationResource.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
public final ApplicationResource.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 ApplicationResource.Builder from(Application instance)
org.cloudfoundry.client.v3.applications.Application
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ApplicationResource.Builder from(ApplicationResource instance)
ApplicationResource
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ApplicationResource.Builder lifecycle(Lifecycle lifecycle)
lifecycle
attribute.lifecycle
- The value for lifecyclethis
builder for use in a chained invocationpublic final ApplicationResource.Builder name(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final ApplicationResource.Builder relationships(ApplicationRelationships relationships)
relationships
attribute.relationships
- The value for relationships (can be null
)this
builder for use in a chained invocationpublic final ApplicationResource.Builder state(ApplicationState state)
state
attribute.state
- The value for statethis
builder for use in a chained invocationpublic final ApplicationResource.Builder createdAt(String createdAt)
createdAt
attribute.createdAt
- The value for createdAtthis
builder for use in a chained invocationpublic final ApplicationResource.Builder id(String id)
id
attribute.id
- The value for idthis
builder for use in a chained invocationpublic final ApplicationResource.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 ApplicationResource.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 ApplicationResource.Builder links(Map<String,? extends Link> links)
links
map. Nulls are not permittedlinks
- The entries that will be added to the links mapthis
builder for use in a chained invocationpublic final ApplicationResource.Builder putAllLinks(Map<String,? extends Link> links)
links
map. Nulls are not permittedlinks
- The entries that will be added to the links mapthis
builder for use in a chained invocationpublic final ApplicationResource.Builder updatedAt(String updatedAt)
updatedAt
attribute.updatedAt
- The value for updatedAtthis
builder for use in a chained invocationpublic ApplicationResource build()
ApplicationResource
.IllegalStateException
- if any required attributes are missingCopyright © 2018 Pivotal Software, Inc.. All rights reserved.