Interface ListAccountsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListAccountsResponse.Builder,ListAccountsResponse>,SdkBuilder<ListAccountsResponse.Builder,ListAccountsResponse>,SdkPojo,SdkResponse.Builder,SsoResponse.Builder
- Enclosing class:
- ListAccountsResponse
public static interface ListAccountsResponse.Builder extends SsoResponse.Builder, SdkPojo, CopyableBuilder<ListAccountsResponse.Builder,ListAccountsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListAccountsResponse.BuilderaccountList(Collection<AccountInfo> accountList)A paginated response with the list of account information and the next token if more results are available.ListAccountsResponse.BuilderaccountList(Consumer<AccountInfo.Builder>... accountList)A paginated response with the list of account information and the next token if more results are available.ListAccountsResponse.BuilderaccountList(AccountInfo... accountList)A paginated response with the list of account information and the next token if more results are available.ListAccountsResponse.BuildernextToken(String nextToken)The page token client that is used to retrieve the list of accounts.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.sso.model.SsoResponse.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
nextToken
ListAccountsResponse.Builder nextToken(String 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
ListAccountsResponse.Builder accountList(Collection<AccountInfo> 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
ListAccountsResponse.Builder accountList(AccountInfo... 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
ListAccountsResponse.Builder accountList(Consumer<AccountInfo.Builder>... 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 to#accountList(List.) - 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:
#accountList(java.util.Collection)
-
-