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