public static interface Resource.Builder extends SdkPojo, CopyableBuilder<Resource.Builder,Resource>
Modifier and Type | Method and Description |
---|---|
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 AWS partition name that the Region is assigned to.
|
Resource.Builder |
partition(String partition)
The canonical AWS partition name that the Region is assigned to.
|
Resource.Builder |
region(String region)
The canonical AWS 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 AWS 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, sdkFields
copy
applyMutation, build
Resource.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 AWS partition name that the Region is assigned to.
Resource.Builder partition(Partition partition)
The canonical AWS partition name that the Region is assigned to.
Resource.Builder region(String region)
The canonical AWS external Region name where this resource is located.
region
- The canonical AWS 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 AWS tags associated with a resource at the time the finding was processed.
tags
- A list of AWS tags associated with a resource at the time the finding was processed.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 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.Builder
details(ResourceDetails)
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.