Package com.courier.models.brands
Class BrandListResponse.Builder
-
- All Implemented Interfaces:
public final class BrandListResponse.BuilderA builder for BrandListResponse.
-
-
Method Summary
Modifier and Type Method Description final BrandListResponse.Builderpaging(Paging paging)final BrandListResponse.Builderpaging(JsonField<Paging> paging)Sets Builder.paging to an arbitrary JSON value. final BrandListResponse.Builderresults(List<Brand> results)final BrandListResponse.Builderresults(JsonField<List<Brand>> results)Sets Builder.results to an arbitrary JSON value. final BrandListResponse.BuilderaddResult(Brand result)Adds a single Brand to results. final BrandListResponse.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BrandListResponse.BuilderputAdditionalProperty(String key, JsonValue value)final BrandListResponse.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BrandListResponse.BuilderremoveAdditionalProperty(String key)final BrandListResponse.BuilderremoveAllAdditionalProperties(Set<String> keys)final BrandListResponsebuild()Returns an immutable instance of BrandListResponse. -
-
Method Detail
-
paging
final BrandListResponse.Builder paging(Paging paging)
-
paging
final BrandListResponse.Builder paging(JsonField<Paging> paging)
Sets Builder.paging to an arbitrary JSON value.
You should usually call Builder.paging with a well-typed Paging value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
results
final BrandListResponse.Builder results(List<Brand> results)
-
results
final BrandListResponse.Builder results(JsonField<List<Brand>> results)
Sets Builder.results to an arbitrary JSON value.
You should usually call Builder.results with a well-typed
List<Brand>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addResult
final BrandListResponse.Builder addResult(Brand result)
-
additionalProperties
final BrandListResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BrandListResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BrandListResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BrandListResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BrandListResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BrandListResponse build()
Returns an immutable instance of BrandListResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.paging() .results()
-
-
-
-