Interface Resource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Resource.Builder,Resource>,SdkBuilder<Resource.Builder,Resource>,SdkPojo
- Enclosing class:
- Resource
public static interface Resource.Builder extends SdkPojo, CopyableBuilder<Resource.Builder,Resource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Resource.BuilderapplicationArn(String applicationArn)The Amazon Resource Name (ARN) of the application that is related to a finding.Resource.BuilderapplicationName(String applicationName)The name of the application that is related to a finding.default Resource.BuilderdataClassification(Consumer<DataClassificationDetails.Builder> dataClassification)Contains information about sensitive data that was detected on the resource.Resource.BuilderdataClassification(DataClassificationDetails dataClassification)Contains information about sensitive data that was detected on the resource.default Resource.Builderdetails(Consumer<ResourceDetails.Builder> details)Additional details about the resource related to a finding.Resource.Builderdetails(ResourceDetails details)Additional details about the resource related to a finding.Resource.Builderid(String id)The canonical identifier for the given resource type.Resource.Builderpartition(String partition)The canonical Amazon Web Services partition name that the Region is assigned to.Resource.Builderpartition(Partition partition)The canonical Amazon Web Services partition name that the Region is assigned to.Resource.Builderregion(String region)The canonical Amazon Web Services external Region name where this resource is located.Resource.BuilderresourceRole(String resourceRole)Identifies the role of the resource in the finding.Resource.Buildertags(Map<String,String> tags)A list of Amazon Web Services tags associated with a resource at the time the finding was processed.Resource.Buildertype(String type)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 Detail
-
type
Resource.Builder type(String type)
The type of the resource that details are provided for. If possible, set
Typeto one of the supported resource types. For example, if the resource is an EC2 instance, then setTypetoAwsEc2Instance.If the resource does not match any of the provided types, then set
TypetoOther.Length Constraints: Minimum length of 1. Maximum length of 256.
- Parameters:
type- The type of the resource that details are provided for. If possible, setTypeto one of the supported resource types. For example, if the resource is an EC2 instance, then setTypetoAwsEc2Instance.If the resource does not match any of the provided types, then set
TypetoOther.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
Resource.Builder id(String 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
Resource.Builder partition(String partition)
The canonical Amazon Web Services partition name that the Region is assigned to.
-
partition
Resource.Builder partition(Partition partition)
The canonical Amazon Web Services partition name that the Region is assigned to.
-
region
Resource.Builder region(String 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
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,
- 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
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 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
Resource.Builder dataClassification(DataClassificationDetails 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.Builderavoiding the need to create one manually viaDataClassificationDetails.builder().When the
Consumercompletes,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:
dataClassification(DataClassificationDetails)
-
details
Resource.Builder details(ResourceDetails 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
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.Builderavoiding the need to create one manually viaResourceDetails.builder().When the
Consumercompletes,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:
details(ResourceDetails)
-
applicationName
Resource.Builder applicationName(String 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
Resource.Builder applicationArn(String 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.
-
-