public static final class ListSpacesResponse.Builder extends Object
ListSpacesResponse.
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 |
|---|---|
ListSpacesResponse.Builder |
addAllResources(Iterable<? extends SpaceResource> elements)
Adds elements to
resources list. |
ListSpacesResponse |
build()
Builds a new
ListSpacesResponse. |
ListSpacesResponse.Builder |
from(ListSpacesResponse instance)
Fill a builder with attribute values from the provided
ListSpacesResponse instance. |
ListSpacesResponse.Builder |
nextUrl(String nextUrl)
Initializes the value for the
nextUrl attribute. |
ListSpacesResponse.Builder |
previousUrl(String previousUrl)
Initializes the value for the
previousUrl attribute. |
ListSpacesResponse.Builder |
resource(SpaceResource... elements)
Adds elements to
resources list. |
ListSpacesResponse.Builder |
resource(SpaceResource element)
Adds one element to
resources list. |
ListSpacesResponse.Builder |
resources(Iterable<? extends SpaceResource> elements)
Sets or replaces all elements for
resources list. |
ListSpacesResponse.Builder |
totalPages(Integer totalPages)
Initializes the value for the
totalPages attribute. |
ListSpacesResponse.Builder |
totalResults(Integer totalResults)
Initializes the value for the
totalResults attribute. |
public final ListSpacesResponse.Builder from(ListSpacesResponse instance)
ListSpacesResponse instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ListSpacesResponse.Builder nextUrl(String nextUrl)
nextUrl attribute.nextUrl - The value for nextUrl (can be null)this builder for use in a chained invocationpublic final ListSpacesResponse.Builder previousUrl(String previousUrl)
previousUrl attribute.previousUrl - The value for previousUrl (can be null)this builder for use in a chained invocationpublic final ListSpacesResponse.Builder resource(SpaceResource element)
resources list.element - A resources elementthis builder for use in a chained invocationpublic final ListSpacesResponse.Builder resource(SpaceResource... elements)
resources list.elements - An array of resources elementsthis builder for use in a chained invocationpublic final ListSpacesResponse.Builder resources(Iterable<? extends SpaceResource> elements)
resources list.elements - An iterable of resources elementsthis builder for use in a chained invocationpublic final ListSpacesResponse.Builder addAllResources(Iterable<? extends SpaceResource> elements)
resources list.elements - An iterable of resources elementsthis builder for use in a chained invocationpublic final ListSpacesResponse.Builder totalPages(Integer totalPages)
totalPages attribute.totalPages - The value for totalPages (can be null)this builder for use in a chained invocationpublic final ListSpacesResponse.Builder totalResults(Integer totalResults)
totalResults attribute.totalResults - The value for totalResults (can be null)this builder for use in a chained invocationpublic ListSpacesResponse build()
ListSpacesResponse.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.