Interface ListAccountsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListAccountsResponse.Builder,,ListAccountsResponse> SdkBuilder<ListAccountsResponse.Builder,,ListAccountsResponse> SdkPojo,SdkResponse.Builder,SsoResponse.Builder
- Enclosing class:
- ListAccountsResponse
@Mutable
@NotThreadSafe
public static interface ListAccountsResponse.Builder
extends SsoResponse.Builder, SdkPojo, CopyableBuilder<ListAccountsResponse.Builder,ListAccountsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionaccountList(Collection<AccountInfo> accountList) A paginated response with the list of account information and the next token if more results are available.accountList(Consumer<AccountInfo.Builder>... accountList) A paginated response with the list of account information and the next token if more results are available.accountList(AccountInfo... accountList) A paginated response with the list of account information and the next token if more results are available.The page token client that is used to retrieve the list of accounts.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.sso.model.SsoResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
nextToken
The page token client that is used to retrieve the list of accounts.
- Parameters:
nextToken- The page token client that is used to retrieve the list of accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountList
A paginated response with the list of account information and the next token if more results are available.
- Parameters:
accountList- A paginated response with the list of account information and the next token if more results are available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountList
A paginated response with the list of account information and the next token if more results are available.
- Parameters:
accountList- A paginated response with the list of account information and the next token if more results are available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountList
A paginated response with the list of account information and the next token if more results are available.
This is a convenience method that creates an instance of theAccountInfo.Builderavoiding the need to create one manually viaAccountInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccountList(List<AccountInfo>).- Parameters:
accountList- a consumer that will call methods onAccountInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-