Interface ResourceResult.Builder

  • Method Details

    • resourceGuid

      ResourceResult.Builder resourceGuid(String resourceGuid)

      The global identifier used to identify a resource.

      Parameters:
      resourceGuid - The global identifier used to identify a resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceId

      ResourceResult.Builder resourceId(String resourceId)

      The unique identifier for a resource.

      Parameters:
      resourceId - The unique identifier for a resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountId

      ResourceResult.Builder accountId(String accountId)

      The Amazon Web Services account that recorded the resource data in Security Hub.

      Parameters:
      accountId - The Amazon Web Services account that recorded the resource data in Security Hub.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountName

      ResourceResult.Builder accountName(String accountName)

      The name of the Amazon Web Services account that's associated with the resource.

      Parameters:
      accountName - The name of the Amazon Web Services account that's associated with the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • region

      The Amazon Web Services Region that recorded the resource data in Security Hub.

      Parameters:
      region - The Amazon Web Services Region that recorded the resource data in Security Hub.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceProvider

      ResourceResult.Builder resourceProvider(String resourceProvider)

      The cloud provider where the resource exists. Valid values are AWS and Azure. This field is always included.

      Parameters:
      resourceProvider - The cloud provider where the resource exists. Valid values are AWS and Azure . This field is always included.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceOwnerAccountId

      ResourceResult.Builder resourceOwnerAccountId(String resourceOwnerAccountId)

      The identifier of the cloud account that owns the resource. For Amazon Web Services resources, this is the Amazon Web Services account ID. For Azure resources, this is the Azure subscription ID.

      Parameters:
      resourceOwnerAccountId - The identifier of the cloud account that owns the resource. For Amazon Web Services resources, this is the Amazon Web Services account ID. For Azure resources, this is the Azure subscription ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceOwnerOrgId

      ResourceResult.Builder resourceOwnerOrgId(String resourceOwnerOrgId)

      The identifier of the cloud organization that owns the resource. For Amazon Web Services resources, this is the Organizations ID. For Azure resources, this is the Azure tenant ID.

      Parameters:
      resourceOwnerOrgId - The identifier of the cloud organization that owns the resource. For Amazon Web Services resources, this is the Organizations ID. For Azure resources, this is the Azure tenant ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceCloudPartition

      ResourceResult.Builder resourceCloudPartition(String resourceCloudPartition)

      The cloud partition where the resource exists. For Amazon Web Services, valid values include aws, aws-cn, and aws-us-gov. This field isn't returned for cloud providers that don't use partitions.

      Parameters:
      resourceCloudPartition - The cloud partition where the resource exists. For Amazon Web Services, valid values include aws, aws-cn, and aws-us-gov. This field isn't returned for cloud providers that don't use partitions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceRegion

      ResourceResult.Builder resourceRegion(String resourceRegion)

      The native cloud region where the resource is located. For Amazon Web Services, this is an Amazon Web Services Region (for example, us-east-1). For Azure resources, this is the Azure region (for example, westus2). This field is always included.

      Parameters:
      resourceRegion - The native cloud region where the resource is located. For Amazon Web Services, this is an Amazon Web Services Region (for example, us-east-1). For Azure resources, this is the Azure region (for example, westus2). This field is always included.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceCategory

      ResourceResult.Builder resourceCategory(String resourceCategory)

      The grouping where the resource belongs.

      Parameters:
      resourceCategory - The grouping where the resource belongs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceCategory

      ResourceResult.Builder resourceCategory(ResourceCategory resourceCategory)

      The grouping where the resource belongs.

      Parameters:
      resourceCategory - The grouping where the resource belongs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceType

      ResourceResult.Builder resourceType(String resourceType)

      The type of resource.

      Parameters:
      resourceType - The type of resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceName

      ResourceResult.Builder resourceName(String resourceName)

      The name of the resource.

      Parameters:
      resourceName - The name of the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceCreationTimeDt

      ResourceResult.Builder resourceCreationTimeDt(String resourceCreationTimeDt)

      The time when the resource was created.

      Parameters:
      resourceCreationTimeDt - The time when the resource was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceDetailCaptureTimeDt

      ResourceResult.Builder resourceDetailCaptureTimeDt(String resourceDetailCaptureTimeDt)

      The timestamp when information about the resource was captured.

      Parameters:
      resourceDetailCaptureTimeDt - The timestamp when information about the resource was captured.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findingsSummary

      ResourceResult.Builder findingsSummary(Collection<ResourceFindingsSummary> findingsSummary)

      An aggregated view of security findings associated with a resource.

      Parameters:
      findingsSummary - An aggregated view of security findings associated with a resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findingsSummary

      ResourceResult.Builder findingsSummary(ResourceFindingsSummary... findingsSummary)

      An aggregated view of security findings associated with a resource.

      Parameters:
      findingsSummary - An aggregated view of security findings associated with a resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findingsSummary

      ResourceResult.Builder findingsSummary(Consumer<ResourceFindingsSummary.Builder>... findingsSummary)

      An aggregated view of security findings associated with a resource.

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

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

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

      ResourceResult.Builder resourceTags(Collection<ResourceTag> resourceTags)

      The key-value pairs associated with a resource.

      Parameters:
      resourceTags - The key-value pairs associated with a resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceTags

      ResourceResult.Builder resourceTags(ResourceTag... resourceTags)

      The key-value pairs associated with a resource.

      Parameters:
      resourceTags - The key-value pairs associated with a resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceTags

      ResourceResult.Builder resourceTags(Consumer<ResourceTag.Builder>... resourceTags)

      The key-value pairs associated with a resource.

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

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

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

      ResourceResult.Builder resourceConfig(Document resourceConfig)

      The configuration details of a resource.

      Parameters:
      resourceConfig - The configuration details of a resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceSubCategory

      ResourceResult.Builder resourceSubCategory(String resourceSubCategory)

      The AI/ML sub-grouping of the resource. Present only when ResourceCategory is AI/ML .

      Parameters:
      resourceSubCategory - The AI/ML sub-grouping of the resource. Present only when ResourceCategory is AI/ML.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceSubCategory

      ResourceResult.Builder resourceSubCategory(ResourceSubCategory resourceSubCategory)

      The AI/ML sub-grouping of the resource. Present only when ResourceCategory is AI/ML .

      Parameters:
      resourceSubCategory - The AI/ML sub-grouping of the resource. Present only when ResourceCategory is AI/ML.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • discoveryType

      ResourceResult.Builder discoveryType(String discoveryType)

      Specifies how the resource was discovered. If the value is Managed, the resource is natively provided by a cloud service provider. If the value is SelfHosted, the resource is hosted on customer-managed infrastructure, such as a compute instance or container image.

      Parameters:
      discoveryType - Specifies how the resource was discovered. If the value is Managed, the resource is natively provided by a cloud service provider. If the value is SelfHosted, the resource is hosted on customer-managed infrastructure, such as a compute instance or container image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • discoveryType

      ResourceResult.Builder discoveryType(DiscoveryType discoveryType)

      Specifies how the resource was discovered. If the value is Managed, the resource is natively provided by a cloud service provider. If the value is SelfHosted, the resource is hosted on customer-managed infrastructure, such as a compute instance or container image.

      Parameters:
      discoveryType - Specifies how the resource was discovered. If the value is Managed, the resource is natively provided by a cloud service provider. If the value is SelfHosted, the resource is hosted on customer-managed infrastructure, such as a compute instance or container image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceInfo

      ResourceResult.Builder resourceInfo(ResourceInfo resourceInfo)

      Additional resource-type-specific details. For self-hosted AI resources and their host resources, contains an AIDetails structure.

      Parameters:
      resourceInfo - Additional resource-type-specific details. For self-hosted AI resources and their host resources, contains an AIDetails structure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceInfo

      default ResourceResult.Builder resourceInfo(Consumer<ResourceInfo.Builder> resourceInfo)

      Additional resource-type-specific details. For self-hosted AI resources and their host resources, contains an AIDetails structure.

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

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

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