Interface ListTenantsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListTenantsResponse.Builder,,ListTenantsResponse> SdkBuilder<ListTenantsResponse.Builder,,ListTenantsResponse> SdkPojo,SdkResponse.Builder,SesV2Response.Builder
- Enclosing class:
ListTenantsResponse
@Mutable
@NotThreadSafe
public static interface ListTenantsResponse.Builder
extends SesV2Response.Builder, SdkPojo, CopyableBuilder<ListTenantsResponse.Builder,ListTenantsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionA token that indicates that there are additional tenants to list.tenants(Collection<TenantInfo> tenants) An array that contains basic information about each tenant.tenants(Consumer<TenantInfo.Builder>... tenants) An array that contains basic information about each tenant.tenants(TenantInfo... tenants) An array that contains basic information about each tenant.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, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.sesv2.model.SesV2Response.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
tenants
An array that contains basic information about each tenant.
- Parameters:
tenants- An array that contains basic information about each tenant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tenants
An array that contains basic information about each tenant.
- Parameters:
tenants- An array that contains basic information about each tenant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tenants
An array that contains basic information about each tenant.
This is a convenience method that creates an instance of theTenantInfo.Builderavoiding the need to create one manually viaTenantInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totenants(List<TenantInfo>).- Parameters:
tenants- a consumer that will call methods onTenantInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A token that indicates that there are additional tenants to list. To view additional tenants, issue another request to
ListTenants, and pass this token in theNextTokenparameter.- Parameters:
nextToken- A token that indicates that there are additional tenants to list. To view additional tenants, issue another request toListTenants, and pass this token in theNextTokenparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-