Interface FailedAccount.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FailedAccount.Builder,
,FailedAccount> SdkBuilder<FailedAccount.Builder,
,FailedAccount> SdkPojo
- Enclosing class:
FailedAccount
@Mutable
@NotThreadSafe
public static interface FailedAccount.Builder
extends SdkPojo, CopyableBuilder<FailedAccount.Builder,FailedAccount>
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID.The error code explaining why the account failed to enable Amazon Inspector.The error code explaining why the account failed to enable Amazon Inspector.errorMessage
(String errorMessage) The error message received when the account failed to enable Amazon Inspector.default FailedAccount.Builder
resourceStatus
(Consumer<ResourceStatus.Builder> resourceStatus) An object detailing which resources Amazon Inspector is enabled to scan for the account.resourceStatus
(ResourceStatus resourceStatus) An object detailing which resources Amazon Inspector is enabled to scan for the account.The status of Amazon Inspector for the account.The status of Amazon Inspector for the account.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, sdkFieldNameToField, sdkFields
-
Method Details
-
accountId
The Amazon Web Services account ID.
- Parameters:
accountId
- The Amazon Web Services account ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorCode
The error code explaining why the account failed to enable Amazon Inspector.
- Parameters:
errorCode
- The error code explaining why the account failed to enable Amazon Inspector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorCode
The error code explaining why the account failed to enable Amazon Inspector.
- Parameters:
errorCode
- The error code explaining why the account failed to enable Amazon Inspector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorMessage
The error message received when the account failed to enable Amazon Inspector.
- Parameters:
errorMessage
- The error message received when the account failed to enable Amazon Inspector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceStatus
An object detailing which resources Amazon Inspector is enabled to scan for the account.
- Parameters:
resourceStatus
- An object detailing which resources Amazon Inspector is enabled to scan for the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceStatus
An object detailing which resources Amazon Inspector is enabled to scan for the account.
This is a convenience method that creates an instance of theResourceStatus.Builder
avoiding the need to create one manually viaResourceStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceStatus(ResourceStatus)
.- Parameters:
resourceStatus
- a consumer that will call methods onResourceStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of Amazon Inspector for the account.
- Parameters:
status
- The status of Amazon Inspector for the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of Amazon Inspector for the account.
- Parameters:
status
- The status of Amazon Inspector for the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-