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