public static final class ListOrganizationsResponse.Builder extends Object
ListOrganizationsResponse.
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 |
|---|---|
ListOrganizationsResponse.Builder |
addAllResources(Iterable<? extends OrganizationResource> elements)
Adds elements to
resources list. |
ListOrganizationsResponse |
build()
Builds a new
ListOrganizationsResponse. |
ListOrganizationsResponse.Builder |
from(ListOrganizationsResponse instance)
Fill a builder with attribute values from the provided
ListOrganizationsResponse instance. |
ListOrganizationsResponse.Builder |
pagination(Pagination pagination)
Initializes the value for the
pagination attribute. |
ListOrganizationsResponse.Builder |
resource(OrganizationResource element)
Adds one element to
resources list. |
ListOrganizationsResponse.Builder |
resources(Iterable<? extends OrganizationResource> elements)
Sets or replaces all elements for
resources list. |
ListOrganizationsResponse.Builder |
resources(OrganizationResource... elements)
Adds elements to
resources list. |
public final ListOrganizationsResponse.Builder from(ListOrganizationsResponse instance)
ListOrganizationsResponse 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 ListOrganizationsResponse.Builder pagination(Pagination pagination)
pagination attribute.pagination - The value for pagination (can be null)this builder for use in a chained invocationpublic final ListOrganizationsResponse.Builder resource(OrganizationResource element)
resources list.element - A resources elementthis builder for use in a chained invocationpublic final ListOrganizationsResponse.Builder resources(OrganizationResource... elements)
resources list.elements - An array of resources elementsthis builder for use in a chained invocationpublic final ListOrganizationsResponse.Builder resources(Iterable<? extends OrganizationResource> elements)
resources list.elements - An iterable of resources elementsthis builder for use in a chained invocationpublic final ListOrganizationsResponse.Builder addAllResources(Iterable<? extends OrganizationResource> elements)
resources list.elements - An iterable of resources elementsthis builder for use in a chained invocationpublic ListOrganizationsResponse build()
ListOrganizationsResponse.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.