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)
Provides additional details about the resource.
|
Resource.Builder |
details(ResourceDetails details)
Provides additional details about the resource.
|
Resource.Builder |
id(String id)
The canonical identifier for the given resource type.
|
Resource.Builder |
partition(Partition partition)
The canonical AWS partition name to which the region is assigned.
|
Resource.Builder |
partition(String partition)
The canonical AWS partition name to which the region is assigned.
|
Resource.Builder |
region(String region)
The canonical AWS external region name where this resource is located.
|
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)
Specifies the type of the resource for which details are provided.
|
copy
applyMutation, build
Resource.Builder type(String type)
Specifies the type of the resource for which details are provided.
type
- Specifies the type of the resource for which details are provided.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 to which the region is assigned.
Resource.Builder partition(Partition partition)
The canonical AWS partition name to which the region is assigned.
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 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)
Provides additional details about the resource.
details
- Provides additional details about the resource.default Resource.Builder details(Consumer<ResourceDetails.Builder> details)
Provides additional details about the resource.
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 © 2017 Amazon Web Services, Inc. All Rights Reserved.