Interface BatchGetAccountStatusResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<BatchGetAccountStatusResponse.Builder,
,BatchGetAccountStatusResponse> Inspector2Response.Builder
,SdkBuilder<BatchGetAccountStatusResponse.Builder,
,BatchGetAccountStatusResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
BatchGetAccountStatusResponse
-
Method Summary
Modifier and TypeMethodDescriptionaccounts
(Collection<AccountState> accounts) An array of objects that provide details on the status of Amazon Inspector for each of the requested accounts.accounts
(Consumer<AccountState.Builder>... accounts) An array of objects that provide details on the status of Amazon Inspector for each of the requested accounts.accounts
(AccountState... accounts) An array of objects that provide details on the status of Amazon Inspector for each of the requested accounts.failedAccounts
(Collection<FailedAccount> failedAccounts) An array of objects detailing any accounts that failed to enable Amazon Inspector and why.failedAccounts
(Consumer<FailedAccount.Builder>... failedAccounts) An array of objects detailing any accounts that failed to enable Amazon Inspector and why.failedAccounts
(FailedAccount... failedAccounts) An array of objects detailing any accounts that failed to enable Amazon Inspector and why.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.inspector2.model.Inspector2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
accounts
An array of objects that provide details on the status of Amazon Inspector for each of the requested accounts.
- Parameters:
accounts
- An array of objects that provide details on the status of Amazon Inspector for each of the requested accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accounts
An array of objects that provide details on the status of Amazon Inspector for each of the requested accounts.
- Parameters:
accounts
- An array of objects that provide details on the status of Amazon Inspector for each of the requested accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accounts
An array of objects that provide details on the status of Amazon Inspector for each of the requested accounts.
This is a convenience method that creates an instance of theAccountState.Builder
avoiding the need to create one manually viaAccountState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccounts(List<AccountState>)
.- Parameters:
accounts
- a consumer that will call methods onAccountState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failedAccounts
An array of objects detailing any accounts that failed to enable Amazon Inspector and why.
- Parameters:
failedAccounts
- An array of objects detailing any accounts that failed to enable Amazon Inspector and why.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedAccounts
An array of objects detailing any accounts that failed to enable Amazon Inspector and why.
- Parameters:
failedAccounts
- An array of objects detailing any accounts that failed to enable Amazon Inspector and why.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedAccounts
BatchGetAccountStatusResponse.Builder failedAccounts(Consumer<FailedAccount.Builder>... failedAccounts) An array of objects detailing any accounts that failed to enable Amazon Inspector and why.
This is a convenience method that creates an instance of theFailedAccount.Builder
avoiding the need to create one manually viaFailedAccount.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailedAccounts(List<FailedAccount>)
.- Parameters:
failedAccounts
- a consumer that will call methods onFailedAccount.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-