Interface FailedAccount.Builder

  • Method Details

    • 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.

      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

      FailedAccount.Builder errorCode(ErrorCode 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

      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 the ResourceStatus.Builder avoiding the need to create one manually via ResourceStatus.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resourceStatus(ResourceStatus).

      Parameters:
      resourceStatus - a consumer that will call methods on ResourceStatus.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      FailedAccount.Builder status(String 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

      FailedAccount.Builder status(Status 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: