Interface Resource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Resource.Builder,
,Resource> SdkBuilder<Resource.Builder,
,Resource> SdkPojo
- Enclosing class:
Resource
-
Method Summary
Modifier and TypeMethodDescriptionapplicationArn
(String applicationArn) The Amazon Resource Name (ARN) of the application that is related to a finding.applicationName
(String applicationName) The name of the application that is related to a finding.default Resource.Builder
dataClassification
(Consumer<DataClassificationDetails.Builder> dataClassification) Contains information about sensitive data that was detected on the resource.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.details
(ResourceDetails details) Additional details about the resource related to a finding.The canonical identifier for the given resource type.The canonical Amazon Web Services partition name that the Region is assigned to.The canonical Amazon Web Services partition name that the Region is assigned to.The canonical Amazon Web Services external Region name where this resource is located.resourceRole
(String resourceRole) Identifies the role of the resource in the finding.A list of Amazon Web Services tags associated with a resource at the time the finding was processed.The type of the resource that details are provided for.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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 setType
toAwsEc2Instance
.If the resource does not match any of the provided types, then set
Type
toOther
.Length Constraints: Minimum length of 1. Maximum length of 256.
- Parameters:
type
- The type of the resource that details are provided for. If possible, setType
to one of the supported resource types. For example, if the resource is an EC2 instance, then setType
toAwsEc2Instance
.If the resource does not match any of the provided types, then set
Type
toOther
.Length Constraints: Minimum length of 1. Maximum length of 256.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The canonical identifier for the given resource type.
- Parameters:
id
- The canonical identifier for the given resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partition
The canonical Amazon Web Services partition name that the Region is assigned to.
- Parameters:
partition
- The canonical Amazon Web Services partition name that the Region is assigned to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
partition
The canonical Amazon Web Services partition name that the Region is assigned to.
- Parameters:
partition
- The canonical Amazon Web Services partition name that the Region is assigned to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
region
The canonical Amazon Web Services external Region name where this resource is located.
Length Constraints: Minimum length of 1. Maximum length of 16.
- Parameters:
region
- The canonical Amazon Web Services external Region name where this resource is located.Length Constraints: Minimum length of 1. Maximum length of 16.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceRole
Identifies the role of the resource in the finding. A resource is either the actor or target of the finding activity,
- Parameters:
resourceRole
- Identifies the role of the resource in the finding. A resource is either the actor or target of the finding activity,- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of Amazon Web Services tags associated with a resource at the time the finding was processed. Tags must follow Amazon Web Services tag naming limits and requirements.
- Parameters:
tags
- A list of Amazon Web Services tags associated with a resource at the time the finding was processed. Tags must follow Amazon Web Services tag naming limits and requirements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataClassification
Contains information about sensitive data that was detected on the resource.
- Parameters:
dataClassification
- Contains information about sensitive data that was detected on the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataClassification
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 viaDataClassificationDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todataClassification(DataClassificationDetails)
.- Parameters:
dataClassification
- a consumer that will call methods onDataClassificationDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
details
Additional details about the resource related to a finding.
- Parameters:
details
- Additional details about the resource related to a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaResourceDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todetails(ResourceDetails)
.- Parameters:
details
- a consumer that will call methods onResourceDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
applicationName
The name of the application that is related to a finding.
- Parameters:
applicationName
- The name of the application that is related to a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applicationArn
The Amazon Resource Name (ARN) of the application that is related to a finding.
- Parameters:
applicationArn
- The Amazon Resource Name (ARN) of the application that is related to a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-