Class TenantListResponse.Builder
- java.lang.Object
-
- com.courier.api.resources.tenants.types.TenantListResponse.Builder
-
- All Implemented Interfaces:
TenantListResponse._FinalStage,TenantListResponse.HasMoreStage,TenantListResponse.UrlStage
- Enclosing class:
- TenantListResponse
public static final class TenantListResponse.Builder extends java.lang.Object implements TenantListResponse.HasMoreStage, TenantListResponse.UrlStage, TenantListResponse._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TenantListResponse._FinalStageaddAllItems(java.util.List<Tenant> items)An array of TenantsTenantListResponse._FinalStageaddItems(Tenant items)An array of TenantsTenantListResponsebuild()TenantListResponse._FinalStagecursor(java.lang.String cursor)A pointer to the next page of results.TenantListResponse._FinalStagecursor(java.util.Optional<java.lang.String> cursor)TenantListResponse.Builderfrom(TenantListResponse other)TenantListResponse.UrlStagehasMore(boolean hasMore)Set to true when there are more pages that can be retrieved.TenantListResponse._FinalStageitems(java.util.List<Tenant> items)TenantListResponse._FinalStagenextUrl(java.lang.String nextUrl)A url that may be used to generate fetch the next set of results.TenantListResponse._FinalStagenextUrl(java.util.Optional<java.lang.String> nextUrl)TenantListResponse._FinalStageurl(java.lang.String url)A url that may be used to generate these results.
-
-
-
Method Detail
-
from
public TenantListResponse.Builder from(TenantListResponse other)
- Specified by:
fromin interfaceTenantListResponse.HasMoreStage
-
hasMore
public TenantListResponse.UrlStage hasMore(boolean hasMore)
Set to true when there are more pages that can be retrieved.
- Specified by:
hasMorein interfaceTenantListResponse.HasMoreStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public TenantListResponse._FinalStage url(java.lang.String url)
A url that may be used to generate these results.
- Specified by:
urlin interfaceTenantListResponse.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
nextUrl
public TenantListResponse._FinalStage nextUrl(java.lang.String nextUrl)
A url that may be used to generate fetch the next set of results. Defined only when has_more is set to true
- Specified by:
nextUrlin interfaceTenantListResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
nextUrl
public TenantListResponse._FinalStage nextUrl(java.util.Optional<java.lang.String> nextUrl)
- Specified by:
nextUrlin interfaceTenantListResponse._FinalStage
-
addAllItems
public TenantListResponse._FinalStage addAllItems(java.util.List<Tenant> items)
An array of Tenants
- Specified by:
addAllItemsin interfaceTenantListResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addItems
public TenantListResponse._FinalStage addItems(Tenant items)
An array of Tenants
- Specified by:
addItemsin interfaceTenantListResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
items
public TenantListResponse._FinalStage items(java.util.List<Tenant> items)
- Specified by:
itemsin interfaceTenantListResponse._FinalStage
-
cursor
public TenantListResponse._FinalStage cursor(java.lang.String cursor)
A pointer to the next page of results. Defined only when has_more is set to true.
- Specified by:
cursorin interfaceTenantListResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
cursor
public TenantListResponse._FinalStage cursor(java.util.Optional<java.lang.String> cursor)
- Specified by:
cursorin interfaceTenantListResponse._FinalStage
-
build
public TenantListResponse build()
- Specified by:
buildin interfaceTenantListResponse._FinalStage
-
-