Interface Resource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Resource.Builder,,Resource> SdkBuilder<Resource.Builder,,Resource> SdkPojo
- Enclosing class:
Resource
-
Method Summary
Modifier and TypeMethodDescriptiondefault Resource.Builderdetails(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 cloud provider of the resource.The cloud provider of the resource.providerAccountId(String providerAccountId) The cloud provider account ID of the resource.providerOrgId(String providerOrgId) The cloud provider organization ID 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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:
-
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.
-
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.Builderavoiding the need to create one manually viaResourceDetails.builder().When the
Consumercompletes,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:
-
provider
The cloud provider of the resource. Valid values:
-
AWS– Amazon Web Services resources. -
AZURE– Microsoft Azure resources. -
GCP– Google Cloud Platform (GCP) resources.
- Parameters:
provider- The cloud provider of the resource. Valid values:-
AWS– Amazon Web Services resources. -
AZURE– Microsoft Azure resources. -
GCP– Google Cloud Platform (GCP) resources.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
provider
The cloud provider of the resource. Valid values:
-
AWS– Amazon Web Services resources. -
AZURE– Microsoft Azure resources. -
GCP– Google Cloud Platform (GCP) resources.
- Parameters:
provider- The cloud provider of the resource. Valid values:-
AWS– Amazon Web Services resources. -
AZURE– Microsoft Azure resources. -
GCP– Google Cloud Platform (GCP) resources.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
providerAccountId
The cloud provider account ID of the resource. The value format depends on the cloud provider:
-
An Amazon Web Services account ID.
-
An Azure subscription ID.
-
A Google Cloud Platform (GCP) project ID, such as
my-project.
- Parameters:
providerAccountId- The cloud provider account ID of the resource. The value format depends on the cloud provider:-
An Amazon Web Services account ID.
-
An Azure subscription ID.
-
A Google Cloud Platform (GCP) project ID, such as
my-project.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
providerOrgId
The cloud provider organization ID of the resource. The value format depends on the cloud provider:
-
An Amazon Web Services Organizations organization ID.
-
An Azure tenant ID.
-
A numeric Google Cloud Platform (GCP) organization ID.
- Parameters:
providerOrgId- The cloud provider organization ID of the resource. The value format depends on the cloud provider:-
An Amazon Web Services Organizations organization ID.
-
An Azure tenant ID.
-
A numeric Google Cloud Platform (GCP) organization ID.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-