public static final class GetJobResponse.Builder extends Object
GetJobResponse.
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 |
|---|---|
GetJobResponse.Builder |
addAllErrors(Iterable<? extends Error> elements)
Adds elements to
errors list. |
GetJobResponse.Builder |
addAllWarnings(Iterable<? extends Warning> elements)
Adds elements to
warnings list. |
GetJobResponse |
build()
Builds a new
GetJobResponse. |
GetJobResponse.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
GetJobResponse.Builder |
error(Error element)
Adds one element to
errors list. |
GetJobResponse.Builder |
errors(Error... elements)
Adds elements to
errors list. |
GetJobResponse.Builder |
errors(Iterable<? extends Error> elements)
Sets or replaces all elements for
errors list. |
GetJobResponse.Builder |
from(org.cloudfoundry.client.v3.jobs._GetJobResponse instance)
Copy abstract value type
_GetJobResponse instance into builder. |
GetJobResponse.Builder |
from(GetJobResponse instance)
Fill a builder with attribute values from the provided
GetJobResponse instance. |
GetJobResponse.Builder |
from(Job instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.jobs.Job instance. |
GetJobResponse.Builder |
from(Resource instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.Resource instance. |
GetJobResponse.Builder |
id(String id)
Initializes the value for the
id attribute. |
GetJobResponse.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
GetJobResponse.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
GetJobResponse.Builder |
links(Map<String,? extends Link> entries)
Sets or replaces all mappings from the specified map as entries for the
links map. |
GetJobResponse.Builder |
operation(String operation)
Initializes the value for the
operation attribute. |
GetJobResponse.Builder |
putAllLinks(Map<String,? extends Link> entries)
Put all mappings from the specified map as entries to
links map. |
GetJobResponse.Builder |
state(JobState state)
Initializes the value for the
state attribute. |
GetJobResponse.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
GetJobResponse.Builder |
warning(Warning element)
Adds one element to
warnings list. |
GetJobResponse.Builder |
warnings(Iterable<? extends Warning> elements)
Sets or replaces all elements for
warnings list. |
GetJobResponse.Builder |
warnings(Warning... elements)
Adds elements to
warnings list. |
public final GetJobResponse.Builder from(Job instance)
org.cloudfoundry.client.v3.jobs.Job instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetJobResponse.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 GetJobResponse.Builder from(GetJobResponse instance)
GetJobResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetJobResponse.Builder from(org.cloudfoundry.client.v3.jobs._GetJobResponse instance)
_GetJobResponse instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetJobResponse.Builder createdAt(String createdAt)
createdAt attribute.createdAt - The value for createdAtthis builder for use in a chained invocationpublic final GetJobResponse.Builder id(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final GetJobResponse.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 GetJobResponse.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 GetJobResponse.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 GetJobResponse.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 GetJobResponse.Builder updatedAt(String updatedAt)
updatedAt attribute.updatedAt - The value for updatedAt (can be null)this builder for use in a chained invocationpublic final GetJobResponse.Builder error(Error element)
errors list.element - A errors elementthis builder for use in a chained invocationpublic final GetJobResponse.Builder errors(Error... elements)
errors list.elements - An array of errors elementsthis builder for use in a chained invocationpublic final GetJobResponse.Builder errors(Iterable<? extends Error> elements)
errors list.elements - An iterable of errors elementsthis builder for use in a chained invocationpublic final GetJobResponse.Builder addAllErrors(Iterable<? extends Error> elements)
errors list.elements - An iterable of errors elementsthis builder for use in a chained invocationpublic final GetJobResponse.Builder operation(String operation)
operation attribute.operation - The value for operationthis builder for use in a chained invocationpublic final GetJobResponse.Builder state(JobState state)
state attribute.state - The value for statethis builder for use in a chained invocationpublic final GetJobResponse.Builder warning(Warning element)
warnings list.element - A warnings elementthis builder for use in a chained invocationpublic final GetJobResponse.Builder warnings(Warning... elements)
warnings list.elements - An array of warnings elementsthis builder for use in a chained invocationpublic final GetJobResponse.Builder warnings(Iterable<? extends Warning> elements)
warnings list.elements - An iterable of warnings elementsthis builder for use in a chained invocationpublic final GetJobResponse.Builder addAllWarnings(Iterable<? extends Warning> elements)
warnings list.elements - An iterable of warnings elementsthis builder for use in a chained invocationpublic GetJobResponse build()
GetJobResponse.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.