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
Modifier and TypeMethodDescriptiondefault Resource.Builder
details
(Consumer<ResourceDetails.Builder> details) An object that contains details about the resource involved in a finding.details
(ResourceDetails details) An object that contains details about the resource involved in a finding.The ID of the resource.The partition of the resource.The Amazon Web Services Region the impacted resource is located in.The tags attached to the resource.The type of resource.type
(ResourceType type) The type of resource.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
-
details
An object that contains details about the resource involved in a finding.
- Parameters:
details
- An object that contains details about the resource involved in a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
details
An object that contains details about the resource involved in 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:
-
id
The ID of the resource.
- Parameters:
id
- The ID of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partition
The partition of the resource.
- Parameters:
partition
- The partition of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
region
The Amazon Web Services Region the impacted resource is located in.
- Parameters:
region
- The Amazon Web Services Region the impacted resource is located in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags attached to the resource.
- Parameters:
tags
- The tags attached to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of resource.
- Parameters:
type
- The type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of resource.
- Parameters:
type
- The type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-