public static final class ListUsersResponse.Builder extends Object
ListUsersResponse.
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 |
|---|---|
ListUsersResponse.Builder |
addAllResources(Iterable<? extends User> elements)
Adds elements to
resources list. |
ListUsersResponse.Builder |
addAllSchemas(Iterable<String> elements)
Adds elements to
schemas list. |
ListUsersResponse |
build()
Builds a new
ListUsersResponse. |
ListUsersResponse.Builder |
from(ListUsersResponse instance)
Fill a builder with attribute values from the provided
ListUsersResponse instance. |
ListUsersResponse.Builder |
itemsPerPage(Integer itemsPerPage)
Initializes the value for the
itemsPerPage attribute. |
ListUsersResponse.Builder |
resource(User... elements)
Adds elements to
resources list. |
ListUsersResponse.Builder |
resource(User element)
Adds one element to
resources list. |
ListUsersResponse.Builder |
resources(Iterable<? extends User> elements)
Sets or replaces all elements for
resources list. |
ListUsersResponse.Builder |
schema(String... elements)
Adds elements to
schemas list. |
ListUsersResponse.Builder |
schema(String element)
Adds one element to
schemas list. |
ListUsersResponse.Builder |
schemas(Iterable<String> elements)
Sets or replaces all elements for
schemas list. |
ListUsersResponse.Builder |
startIndex(Integer startIndex)
Initializes the value for the
startIndex attribute. |
ListUsersResponse.Builder |
totalResults(Integer totalResults)
Initializes the value for the
totalResults attribute. |
public final ListUsersResponse.Builder from(ListUsersResponse instance)
ListUsersResponse 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 ListUsersResponse.Builder itemsPerPage(Integer itemsPerPage)
itemsPerPage attribute.itemsPerPage - The value for itemsPerPagethis builder for use in a chained invocationpublic final ListUsersResponse.Builder resource(User element)
resources list.element - A resources elementthis builder for use in a chained invocationpublic final ListUsersResponse.Builder resource(User... elements)
resources list.elements - An array of resources elementsthis builder for use in a chained invocationpublic final ListUsersResponse.Builder resources(Iterable<? extends User> elements)
resources list.elements - An iterable of resources elementsthis builder for use in a chained invocationpublic final ListUsersResponse.Builder addAllResources(Iterable<? extends User> elements)
resources list.elements - An iterable of resources elementsthis builder for use in a chained invocationpublic final ListUsersResponse.Builder schema(String element)
schemas list.element - A schemas elementthis builder for use in a chained invocationpublic final ListUsersResponse.Builder schema(String... elements)
schemas list.elements - An array of schemas elementsthis builder for use in a chained invocationpublic final ListUsersResponse.Builder schemas(Iterable<String> elements)
schemas list.elements - An iterable of schemas elementsthis builder for use in a chained invocationpublic final ListUsersResponse.Builder addAllSchemas(Iterable<String> elements)
schemas list.elements - An iterable of schemas elementsthis builder for use in a chained invocationpublic final ListUsersResponse.Builder startIndex(Integer startIndex)
startIndex attribute.startIndex - The value for startIndexthis builder for use in a chained invocationpublic final ListUsersResponse.Builder totalResults(Integer totalResults)
totalResults attribute.totalResults - The value for totalResultsthis builder for use in a chained invocationpublic ListUsersResponse build()
ListUsersResponse.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.