Interface Evidence.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Evidence.Builder,Evidence>, SdkBuilder<Evidence.Builder,Evidence>, SdkPojo
Enclosing class:
Evidence

@Mutable @NotThreadSafe public static interface Evidence.Builder extends SdkPojo, CopyableBuilder<Evidence.Builder,Evidence>
  • Method Details

    • dataSource

      Evidence.Builder dataSource(String dataSource)

      The data source where the evidence was collected from.

      Parameters:
      dataSource - The data source where the evidence was collected from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evidenceAwsAccountId

      Evidence.Builder evidenceAwsAccountId(String evidenceAwsAccountId)

      The identifier for the Amazon Web Services account.

      Parameters:
      evidenceAwsAccountId - The identifier for the Amazon Web Services account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • time

      The timestamp that represents when the evidence was collected.

      Parameters:
      time - The timestamp that represents when the evidence was collected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventSource

      Evidence.Builder eventSource(String eventSource)

      The Amazon Web Services service that the evidence is collected from.

      Parameters:
      eventSource - The Amazon Web Services service that the evidence is collected from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventName

      Evidence.Builder eventName(String eventName)

      The name of the evidence event.

      Parameters:
      eventName - The name of the evidence event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evidenceByType

      Evidence.Builder evidenceByType(String evidenceByType)

      The type of automated evidence.

      Parameters:
      evidenceByType - The type of automated evidence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourcesIncluded

      Evidence.Builder resourcesIncluded(Collection<Resource> resourcesIncluded)

      The list of resources that are assessed to generate the evidence.

      Parameters:
      resourcesIncluded - The list of resources that are assessed to generate the evidence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourcesIncluded

      Evidence.Builder resourcesIncluded(Resource... resourcesIncluded)

      The list of resources that are assessed to generate the evidence.

      Parameters:
      resourcesIncluded - The list of resources that are assessed to generate the evidence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourcesIncluded

      Evidence.Builder resourcesIncluded(Consumer<Resource.Builder>... resourcesIncluded)

      The list of resources that are assessed to generate the evidence.

      This is a convenience method that creates an instance of the Resource.Builder avoiding the need to create one manually via Resource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resourcesIncluded(List<Resource>).

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

      Evidence.Builder attributes(Map<String,String> attributes)

      The names and values that are used by the evidence event. This includes an attribute name (such as allowUsersToChangePassword) and value (such as true or false).

      Parameters:
      attributes - The names and values that are used by the evidence event. This includes an attribute name (such as allowUsersToChangePassword) and value (such as true or false).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • iamId

      Evidence.Builder iamId(String iamId)

      The unique identifier for the user or role that's associated with the evidence.

      Parameters:
      iamId - The unique identifier for the user or role that's associated with the evidence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • complianceCheck

      Evidence.Builder complianceCheck(String complianceCheck)

      The evaluation status for automated evidence that falls under the compliance check category.

      • Audit Manager classes evidence as non-compliant if Security Hub reports a Fail result, or if Config reports a Non-compliant result.

      • Audit Manager classes evidence as compliant if Security Hub reports a Pass result, or if Config reports a Compliant result.

      • If a compliance check isn't available or applicable, then no compliance evaluation can be made for that evidence. This is the case if the evidence uses Config or Security Hub as the underlying data source type, but those services aren't enabled. This is also the case if the evidence uses an underlying data source type that doesn't support compliance checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail).

      Parameters:
      complianceCheck - The evaluation status for automated evidence that falls under the compliance check category.

      • Audit Manager classes evidence as non-compliant if Security Hub reports a Fail result, or if Config reports a Non-compliant result.

      • Audit Manager classes evidence as compliant if Security Hub reports a Pass result, or if Config reports a Compliant result.

      • If a compliance check isn't available or applicable, then no compliance evaluation can be made for that evidence. This is the case if the evidence uses Config or Security Hub as the underlying data source type, but those services aren't enabled. This is also the case if the evidence uses an underlying data source type that doesn't support compliance checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail).

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • awsOrganization

      Evidence.Builder awsOrganization(String awsOrganization)

      The Amazon Web Services account that the evidence is collected from, and its organization path.

      Parameters:
      awsOrganization - The Amazon Web Services account that the evidence is collected from, and its organization path.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • awsAccountId

      Evidence.Builder awsAccountId(String awsAccountId)

      The identifier for the Amazon Web Services account.

      Parameters:
      awsAccountId - The identifier for the Amazon Web Services account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evidenceFolderId

      Evidence.Builder evidenceFolderId(String evidenceFolderId)

      The identifier for the folder that the evidence is stored in.

      Parameters:
      evidenceFolderId - The identifier for the folder that the evidence is stored in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      The identifier for the evidence.

      Parameters:
      id - The identifier for the evidence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assessmentReportSelection

      Evidence.Builder assessmentReportSelection(String assessmentReportSelection)

      Specifies whether the evidence is included in the assessment report.

      Parameters:
      assessmentReportSelection - Specifies whether the evidence is included in the assessment report.
      Returns:
      Returns a reference to this object so that method calls can be chained together.