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