public static interface Resource.Builder extends SdkPojo, CopyableBuilder<Resource.Builder,Resource>
| Modifier and Type | Method and Description |
|---|---|
default Resource.Builder |
dataClassification(Consumer<DataClassificationDetails.Builder> dataClassification)
Contains information about sensitive data that was detected on the resource.
|
Resource.Builder |
dataClassification(DataClassificationDetails dataClassification)
Contains information about sensitive data that was detected on the resource.
|
default Resource.Builder |
details(Consumer<ResourceDetails.Builder> details)
Additional details about the resource related to a finding.
|
Resource.Builder |
details(ResourceDetails details)
Additional details about the resource related to a finding.
|
Resource.Builder |
id(String id)
The canonical identifier for the given resource type.
|
Resource.Builder |
partition(Partition partition)
The canonical Amazon Web Services partition name that the Region is assigned to.
|
Resource.Builder |
partition(String partition)
The canonical Amazon Web Services partition name that the Region is assigned to.
|
Resource.Builder |
region(String region)
The canonical Amazon Web Services external Region name where this resource is located.
|
Resource.Builder |
resourceRole(String resourceRole)
Identifies the role of the resource in the finding.
|
Resource.Builder |
tags(Map<String,String> tags)
A list of Amazon Web Services tags associated with a resource at the time the finding was processed.
|
Resource.Builder |
type(String type)
The type of the resource that details are provided for.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildResource.Builder type(String type)
The type of the resource that details are provided for. If possible, set Type to one of the
supported resource types. For example, if the resource is an EC2 instance, then set Type to
AwsEc2Instance.
If the resource does not match any of the provided types, then set Type to Other.
type - The type of the resource that details are provided for. If possible, set Type to one of
the supported resource types. For example, if the resource is an EC2 instance, then set
Type to AwsEc2Instance.
If the resource does not match any of the provided types, then set Type to
Other.
Resource.Builder id(String id)
The canonical identifier for the given resource type.
id - The canonical identifier for the given resource type.Resource.Builder partition(String partition)
The canonical Amazon Web Services partition name that the Region is assigned to.
Resource.Builder partition(Partition partition)
The canonical Amazon Web Services partition name that the Region is assigned to.
Resource.Builder region(String region)
The canonical Amazon Web Services external Region name where this resource is located.
region - The canonical Amazon Web Services external Region name where this resource is located.Resource.Builder resourceRole(String resourceRole)
Identifies the role of the resource in the finding. A resource is either the actor or target of the finding activity,
resourceRole - Identifies the role of the resource in the finding. A resource is either the actor or target of the
finding activity,Resource.Builder tags(Map<String,String> tags)
A list of Amazon Web Services tags associated with a resource at the time the finding was processed.
tags - A list of Amazon Web Services tags associated with a resource at the time the finding was processed.Resource.Builder dataClassification(DataClassificationDetails dataClassification)
Contains information about sensitive data that was detected on the resource.
dataClassification - Contains information about sensitive data that was detected on the resource.default Resource.Builder dataClassification(Consumer<DataClassificationDetails.Builder> dataClassification)
Contains information about sensitive data that was detected on the resource.
This is a convenience method that creates an instance of theDataClassificationDetails.Builder
avoiding the need to create one manually via DataClassificationDetails.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to dataClassification(DataClassificationDetails).
dataClassification - a consumer that will call methods on DataClassificationDetails.BuilderdataClassification(DataClassificationDetails)Resource.Builder details(ResourceDetails details)
Additional details about the resource related to a finding.
details - Additional details about the resource related to a finding.default Resource.Builder details(Consumer<ResourceDetails.Builder> details)
Additional details about the resource related to a finding.
This is a convenience method that creates an instance of theResourceDetails.Builder avoiding the
need to create one manually via ResourceDetails.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to details(ResourceDetails).
details - a consumer that will call methods on ResourceDetails.Builderdetails(ResourceDetails)Copyright © 2023. All rights reserved.