Class TenantListResponse.Builder
-
- All Implemented Interfaces:
public final class TenantListResponse.BuilderA builder for TenantListResponse.
-
-
Method Summary
-
-
Method Detail
-
hasMore
final TenantListResponse.Builder hasMore(Boolean hasMore)
Set to true when there are more pages that can be retrieved.
-
hasMore
final TenantListResponse.Builder hasMore(JsonField<Boolean> hasMore)
Sets Builder.hasMore to an arbitrary JSON value.
You should usually call Builder.hasMore with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final TenantListResponse.Builder type(TenantListResponse.Type type)
Always set to
list. Represents the type of this object.
-
type
final TenantListResponse.Builder type(JsonField<TenantListResponse.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
url
final TenantListResponse.Builder url(String url)
A url that may be used to generate these results.
-
url
final TenantListResponse.Builder url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value.
You should usually call Builder.url with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
cursor
final TenantListResponse.Builder cursor(String cursor)
A pointer to the next page of results. Defined only when
has_moreis set to true
-
cursor
final TenantListResponse.Builder cursor(Optional<String> cursor)
Alias for calling Builder.cursor with
cursor.orElse(null).
-
cursor
final TenantListResponse.Builder cursor(JsonField<String> cursor)
Sets Builder.cursor to an arbitrary JSON value.
You should usually call Builder.cursor with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
items
final TenantListResponse.Builder items(List<TenantAssociation> items)
-
items
final TenantListResponse.Builder items(Optional<List<TenantAssociation>> items)
Alias for calling Builder.items with
items.orElse(null).
-
items
final TenantListResponse.Builder items(JsonField<List<TenantAssociation>> items)
Sets Builder.items to an arbitrary JSON value.
You should usually call Builder.items with a well-typed
List<TenantAssociation>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addItem
final TenantListResponse.Builder addItem(TenantAssociation item)
Adds a single TenantAssociation to items.
-
nextUrl
final TenantListResponse.Builder nextUrl(String nextUrl)
A url that may be used to generate fetch the next set of results. Defined only when
has_moreis set to true
-
nextUrl
final TenantListResponse.Builder nextUrl(Optional<String> nextUrl)
Alias for calling Builder.nextUrl with
nextUrl.orElse(null).
-
nextUrl
final TenantListResponse.Builder nextUrl(JsonField<String> nextUrl)
Sets Builder.nextUrl to an arbitrary JSON value.
You should usually call Builder.nextUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TenantListResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TenantListResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TenantListResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TenantListResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TenantListResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TenantListResponse build()
Returns an immutable instance of TenantListResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.hasMore() .type() .url()
-
-
-
-