Package org.projectnessie.model
Class ImmutableGetNamespacesResponse.Builder
- java.lang.Object
-
- org.projectnessie.model.ImmutableGetNamespacesResponse.Builder
-
- Enclosing class:
- ImmutableGetNamespacesResponse
@NotThreadSafe public static final class ImmutableGetNamespacesResponse.Builder extends Object
Builds instances of typeImmutableGetNamespacesResponse. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableGetNamespacesResponse.BuilderaddAllNamespaces(Iterable<? extends Namespace> elements)Adds elements tonamespaceslist.ImmutableGetNamespacesResponse.BuilderaddNamespaces(Namespace element)Adds one element tonamespaceslist.ImmutableGetNamespacesResponse.BuilderaddNamespaces(Namespace... elements)Adds elements tonamespaceslist.ImmutableGetNamespacesResponsebuild()Builds a newImmutableGetNamespacesResponse.ImmutableGetNamespacesResponse.Builderfrom(GetNamespacesResponse instance)Fill a builder with attribute values from the providedGetNamespacesResponseinstance.ImmutableGetNamespacesResponse.Buildernamespaces(Iterable<? extends Namespace> elements)Sets or replaces all elements fornamespaceslist.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableGetNamespacesResponse.Builder from(GetNamespacesResponse instance)
Fill a builder with attribute values from the providedGetNamespacesResponseinstance. 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.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addNamespaces
@CanIgnoreReturnValue public final ImmutableGetNamespacesResponse.Builder addNamespaces(Namespace element)
Adds one element tonamespaceslist.- Parameters:
element- A namespaces element- Returns:
thisbuilder for use in a chained invocation
-
addNamespaces
@CanIgnoreReturnValue public final ImmutableGetNamespacesResponse.Builder addNamespaces(Namespace... elements)
Adds elements tonamespaceslist.- Parameters:
elements- An array of namespaces elements- Returns:
thisbuilder for use in a chained invocation
-
namespaces
@CanIgnoreReturnValue public final ImmutableGetNamespacesResponse.Builder namespaces(Iterable<? extends Namespace> elements)
Sets or replaces all elements fornamespaceslist.- Parameters:
elements- An iterable of namespaces elements- Returns:
thisbuilder for use in a chained invocation
-
addAllNamespaces
@CanIgnoreReturnValue public final ImmutableGetNamespacesResponse.Builder addAllNamespaces(Iterable<? extends Namespace> elements)
Adds elements tonamespaceslist.- Parameters:
elements- An iterable of namespaces elements- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableGetNamespacesResponse build()
Builds a newImmutableGetNamespacesResponse.- Returns:
- An immutable instance of GetNamespacesResponse
- Throws:
IllegalStateException- if any required attributes are missing
-
-