Interface ResourceV2.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ResourceV2.Builder,ResourceV2>,SdkBuilder<ResourceV2.Builder,ResourceV2>,SdkPojo
- Enclosing class:
- ResourceV2
public static interface ResourceV2.Builder extends SdkPojo, CopyableBuilder<ResourceV2.Builder,ResourceV2>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ResourceV2.BuilderaccountId(String accountId)The Amazon Web Services account ID to which the resource belongs.ResourceV2.BuildercloudPartition(String cloudPartition)The cloud partition within the Amazon Web Services Region to which the resource belongs.default ResourceV2.Builderdata(Consumer<ResourceData.Builder> data)Contains information about the Amazon Web Services resource associated with the activity that prompted GuardDuty to generate a finding.ResourceV2.Builderdata(ResourceData data)Contains information about the Amazon Web Services resource associated with the activity that prompted GuardDuty to generate a finding.ResourceV2.Buildername(String name)The name of the resource.ResourceV2.Builderregion(String region)The Amazon Web Services Region where the resource belongs.ResourceV2.BuilderresourceType(String resourceType)The type of the Amazon Web Services resource.ResourceV2.BuilderresourceType(FindingResourceType resourceType)The type of the Amazon Web Services resource.ResourceV2.Builderservice(String service)The Amazon Web Services service of the resource.ResourceV2.Buildertags(Collection<Tag> tags)Contains information about the tags associated with the resource.ResourceV2.Buildertags(Consumer<Tag.Builder>... tags)Contains information about the tags associated with the resource.ResourceV2.Buildertags(Tag... tags)Contains information about the tags associated with the resource.ResourceV2.Builderuid(String uid)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 Detail
-
uid
ResourceV2.Builder uid(String 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
ResourceV2.Builder name(String 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
ResourceV2.Builder accountId(String 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
ResourceV2.Builder resourceType(String 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:
FindingResourceType,FindingResourceType
-
resourceType
ResourceV2.Builder resourceType(FindingResourceType 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:
FindingResourceType,FindingResourceType
-
region
ResourceV2.Builder region(String 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
ResourceV2.Builder service(String 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
ResourceV2.Builder cloudPartition(String 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
ResourceV2.Builder tags(Collection<Tag> 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
ResourceV2.Builder tags(Tag... 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
ResourceV2.Builder tags(Consumer<Tag.Builder>... tags)
Contains information about the tags associated with the resource.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
data
ResourceV2.Builder data(ResourceData 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
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.
This is a convenience method that creates an instance of theResourceData.Builderavoiding the need to create one manually viaResourceData.builder().When the
Consumercompletes,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:
data(ResourceData)
-
-