Interface ListResourcesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListResourcesResponse.Builder,,ListResourcesResponse> SdkBuilder<ListResourcesResponse.Builder,,ListResourcesResponse> SdkPojo,SdkResponse.Builder,WorkMailResponse.Builder
- Enclosing class:
ListResourcesResponse
public static interface ListResourcesResponse.Builder
extends WorkMailResponse.Builder, SdkPojo, CopyableBuilder<ListResourcesResponse.Builder,ListResourcesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token used to paginate through all the organization's resources.resources(Collection<Resource> resources) One page of the organization's resource representation.resources(Consumer<Resource.Builder>... resources) One page of the organization's resource representation.One page of the organization's resource representation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.workmail.model.WorkMailResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
resources
One page of the organization's resource representation.
- Parameters:
resources- One page of the organization's resource representation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
One page of the organization's resource representation.
- Parameters:
resources- One page of the organization's resource representation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
One page of the organization's resource representation.
This is a convenience method that creates an instance of theResource.Builderavoiding the need to create one manually viaResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresources(List<Resource>).- Parameters:
resources- a consumer that will call methods onResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token used to paginate through all the organization's resources. While results are still available, it has an associated value. When the last page is reached, the token is empty.
- Parameters:
nextToken- The token used to paginate through all the organization's resources. While results are still available, it has an associated value. When the last page is reached, the token is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-