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