public static final class ListOrganizationsRequest.Builder extends Object
ListOrganizationsRequest.
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 |
|---|---|
ListOrganizationsRequest.Builder |
addAllNames(Iterable<String> elements)
Adds elements to
names list. |
ListOrganizationsRequest |
build()
Builds a new
ListOrganizationsRequest. |
ListOrganizationsRequest.Builder |
from(ListOrganizationsRequest instance)
Fill a builder with attribute values from the provided
ListOrganizationsRequest instance. |
ListOrganizationsRequest.Builder |
from(PaginatedRequest instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.PaginatedRequest instance. |
ListOrganizationsRequest.Builder |
name(String... elements)
Adds elements to
names list. |
ListOrganizationsRequest.Builder |
name(String element)
Adds one element to
names list. |
ListOrganizationsRequest.Builder |
names(Iterable<String> elements)
Sets or replaces all elements for
names list. |
ListOrganizationsRequest.Builder |
page(Integer page)
Initializes the value for the
page attribute. |
ListOrganizationsRequest.Builder |
perPage(Integer perPage)
Initializes the value for the
perPage attribute. |
public final ListOrganizationsRequest.Builder from(ListOrganizationsRequest instance)
ListOrganizationsRequest instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ListOrganizationsRequest.Builder from(PaginatedRequest instance)
org.cloudfoundry.client.v3.PaginatedRequest instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ListOrganizationsRequest.Builder name(String element)
names list.element - A names elementthis builder for use in a chained invocationpublic final ListOrganizationsRequest.Builder name(String... elements)
names list.elements - An array of names elementsthis builder for use in a chained invocationpublic final ListOrganizationsRequest.Builder names(Iterable<String> elements)
names list.elements - An iterable of names elementsthis builder for use in a chained invocationpublic final ListOrganizationsRequest.Builder addAllNames(Iterable<String> elements)
names list.elements - An iterable of names elementsthis builder for use in a chained invocationpublic final ListOrganizationsRequest.Builder page(Integer page)
page attribute.page - The value for page (can be null)this builder for use in a chained invocationpublic final ListOrganizationsRequest.Builder perPage(Integer perPage)
perPage attribute.perPage - The value for perPage (can be null)this builder for use in a chained invocationpublic ListOrganizationsRequest build()
ListOrganizationsRequest.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.