public static final class ListFeatureFlagsResponse.Builder extends Object
ListFeatureFlagsResponse.
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 |
|---|---|
ListFeatureFlagsResponse.Builder |
addAllFeatureFlags(Iterable<? extends FeatureFlagEntity> elements)
Adds elements to
featureFlags list. |
ListFeatureFlagsResponse |
build()
Builds a new
ListFeatureFlagsResponse. |
ListFeatureFlagsResponse.Builder |
featureFlag(FeatureFlagEntity... elements)
Adds elements to
featureFlags list. |
ListFeatureFlagsResponse.Builder |
featureFlag(FeatureFlagEntity element)
Adds one element to
featureFlags list. |
ListFeatureFlagsResponse.Builder |
featureFlags(Iterable<? extends FeatureFlagEntity> elements)
Sets or replaces all elements for
featureFlags list. |
ListFeatureFlagsResponse.Builder |
from(ListFeatureFlagsResponse instance)
Fill a builder with attribute values from the provided
ListFeatureFlagsResponse instance. |
public final ListFeatureFlagsResponse.Builder from(ListFeatureFlagsResponse instance)
ListFeatureFlagsResponse 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 ListFeatureFlagsResponse.Builder featureFlag(FeatureFlagEntity element)
featureFlags list.element - A featureFlags elementthis builder for use in a chained invocationpublic final ListFeatureFlagsResponse.Builder featureFlag(FeatureFlagEntity... elements)
featureFlags list.elements - An array of featureFlags elementsthis builder for use in a chained invocationpublic final ListFeatureFlagsResponse.Builder featureFlags(Iterable<? extends FeatureFlagEntity> elements)
featureFlags list.elements - An iterable of featureFlags elementsthis builder for use in a chained invocationpublic final ListFeatureFlagsResponse.Builder addAllFeatureFlags(Iterable<? extends FeatureFlagEntity> elements)
featureFlags list.elements - An iterable of featureFlags elementsthis builder for use in a chained invocationpublic ListFeatureFlagsResponse build()
ListFeatureFlagsResponse.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.