Interface FailedAccount.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<FailedAccount.Builder,FailedAccount>,SdkBuilder<FailedAccount.Builder,FailedAccount>,SdkPojo
- Enclosing class:
- FailedAccount
public static interface FailedAccount.Builder extends SdkPojo, CopyableBuilder<FailedAccount.Builder,FailedAccount>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FailedAccount.BuilderaccountId(String accountId)The Amazon Web Services account ID.FailedAccount.BuildererrorCode(String errorCode)The error code explaining why the account failed to enable Amazon Inspector.FailedAccount.BuildererrorCode(ErrorCode errorCode)The error code explaining why the account failed to enable Amazon Inspector.FailedAccount.BuildererrorMessage(String errorMessage)The error message received when the account failed to enable Amazon Inspector.default FailedAccount.BuilderresourceStatus(Consumer<ResourceStatus.Builder> resourceStatus)An object detailing which resources Amazon Inspector is enabled to scan for the account.FailedAccount.BuilderresourceStatus(ResourceStatus resourceStatus)An object detailing which resources Amazon Inspector is enabled to scan for the account.FailedAccount.Builderstatus(String status)The status of Amazon Inspector for the account.FailedAccount.Builderstatus(Status status)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, sdkFields
-
-
-
-
Method Detail
-
accountId
FailedAccount.Builder accountId(String 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
FailedAccount.Builder errorCode(String errorCode)
The error code explaining why the account failed to enable Amazon Inspector.
-
errorCode
FailedAccount.Builder errorCode(ErrorCode errorCode)
The error code explaining why the account failed to enable Amazon Inspector.
-
errorMessage
FailedAccount.Builder errorMessage(String 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
FailedAccount.Builder resourceStatus(ResourceStatus 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
default FailedAccount.Builder resourceStatus(Consumer<ResourceStatus.Builder> 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.Builderavoiding the need to create one manually viaResourceStatus.builder().When the
Consumercompletes,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:
resourceStatus(ResourceStatus)
-
status
FailedAccount.Builder status(String status)
The status of Amazon Inspector for the account.
-
status
FailedAccount.Builder status(Status status)
The status of Amazon Inspector for the account.
-
-