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