Interface ResourceV2.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ResourceV2.Builder,
,ResourceV2> SdkBuilder<ResourceV2.Builder,
,ResourceV2> SdkPojo
- Enclosing class:
ResourceV2
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID to which the resource belongs.cloudPartition
(String cloudPartition) The cloud partition within the Amazon Web Services Region to which the resource belongs.default ResourceV2.Builder
data
(Consumer<ResourceData.Builder> data) Contains information about the Amazon Web Services resource associated with the activity that prompted GuardDuty to generate a finding.data
(ResourceData data) Contains information about the Amazon Web Services resource associated with the activity that prompted GuardDuty to generate a finding.The name of the resource.The Amazon Web Services Region where the resource belongs.resourceType
(String resourceType) The type of the Amazon Web Services resource.resourceType
(FindingResourceType resourceType) The type of the Amazon Web Services resource.The Amazon Web Services service of the resource.tags
(Collection<Tag> tags) Contains information about the tags associated with the resource.tags
(Consumer<Tag.Builder>... tags) Contains information about the tags associated with the resource.Contains information about the tags associated with the resource.The unique identifier of the 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, sdkFieldNameToField, sdkFields
-
Method Details
-
uid
The unique identifier of the resource.
- Parameters:
uid
- The unique identifier of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the resource.
- Parameters:
name
- The name of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The Amazon Web Services account ID to which the resource belongs.
- Parameters:
accountId
- The Amazon Web Services account ID to which the resource belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
The type of the Amazon Web Services resource.
- Parameters:
resourceType
- The type of the Amazon Web Services resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of the Amazon Web Services resource.
- Parameters:
resourceType
- The type of the Amazon Web Services resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
region
The Amazon Web Services Region where the resource belongs.
- Parameters:
region
- The Amazon Web Services Region where the resource belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
service
The Amazon Web Services service of the resource.
- Parameters:
service
- The Amazon Web Services service of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudPartition
The cloud partition within the Amazon Web Services Region to which the resource belongs.
- Parameters:
cloudPartition
- The cloud partition within the Amazon Web Services Region to which the resource belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Contains information about the tags associated with the resource.
- Parameters:
tags
- Contains information about the tags associated with the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Contains information about the tags associated with the resource.
- Parameters:
tags
- Contains information about the tags associated with the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Contains information about the tags associated with the resource.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
data
Contains information about the Amazon Web Services resource associated with the activity that prompted GuardDuty to generate a finding.
- Parameters:
data
- Contains information about the Amazon Web Services resource associated with the activity that prompted GuardDuty to generate a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
data
Contains information about the Amazon Web Services resource associated with the activity that prompted GuardDuty to generate a finding.
This is a convenience method that creates an instance of theResourceData.Builder
avoiding the need to create one manually viaResourceData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todata(ResourceData)
.- Parameters:
data
- a consumer that will call methods onResourceData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-