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