Interface GetFindingV2Response.Builder

  • Method Details

    • analyzedAt

      GetFindingV2Response.Builder analyzedAt(Instant analyzedAt)

      The time at which the resource-based policy or IAM entity that generated the finding was analyzed.

      Parameters:
      analyzedAt - The time at which the resource-based policy or IAM entity that generated the finding was analyzed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      GetFindingV2Response.Builder createdAt(Instant createdAt)

      The time at which the finding was created.

      Parameters:
      createdAt - The time at which the finding was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • error

      An error.

      Parameters:
      error - An error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      The ID of the finding to retrieve.

      Parameters:
      id - The ID of the finding to retrieve.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextToken

      GetFindingV2Response.Builder nextToken(String nextToken)

      A token used for pagination of results returned.

      Parameters:
      nextToken - A token used for pagination of results returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      The resource that generated the finding.

      Parameters:
      resource - The resource that generated the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceType

      GetFindingV2Response.Builder resourceType(String resourceType)

      The type of the resource identified in the finding.

      Parameters:
      resourceType - The type of the resource identified in the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceType

      GetFindingV2Response.Builder resourceType(ResourceType resourceType)

      The type of the resource identified in the finding.

      Parameters:
      resourceType - The type of the resource identified in the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceOwnerAccount

      GetFindingV2Response.Builder resourceOwnerAccount(String resourceOwnerAccount)

      Tye Amazon Web Services account ID that owns the resource.

      Parameters:
      resourceOwnerAccount - Tye Amazon Web Services account ID that owns the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The status of the finding.

      Parameters:
      status - The status of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the finding.

      Parameters:
      status - The status of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • updatedAt

      GetFindingV2Response.Builder updatedAt(Instant updatedAt)

      The time at which the finding was updated.

      Parameters:
      updatedAt - The time at which the finding was updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findingDetails

      GetFindingV2Response.Builder findingDetails(Collection<FindingDetails> findingDetails)

      A localized message that explains the finding and provides guidance on how to address it.

      Parameters:
      findingDetails - A localized message that explains the finding and provides guidance on how to address it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findingDetails

      GetFindingV2Response.Builder findingDetails(FindingDetails... findingDetails)

      A localized message that explains the finding and provides guidance on how to address it.

      Parameters:
      findingDetails - A localized message that explains the finding and provides guidance on how to address it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findingDetails

      GetFindingV2Response.Builder findingDetails(Consumer<FindingDetails.Builder>... findingDetails)

      A localized message that explains the finding and provides guidance on how to address it.

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

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

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

      GetFindingV2Response.Builder findingType(String findingType)

      The type of the finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission.

      Parameters:
      findingType - The type of the finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • findingType

      GetFindingV2Response.Builder findingType(FindingType findingType)

      The type of the finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission.

      Parameters:
      findingType - The type of the finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: