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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Resource.Builderarn(String arn)The Amazon resource name (ARN) of the resource.Resource.BuilderlastReportedAt(Instant lastReportedAt)The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.Resource.BuilderowningAccountId(String owningAccountId)The Amazon Web Services account that owns the resource.Resource.Builderproperties(Collection<ResourceProperty> properties)A structure with additional type-specific details about the resource.Resource.Builderproperties(Consumer<ResourceProperty.Builder>... properties)A structure with additional type-specific details about the resource.Resource.Builderproperties(ResourceProperty... properties)A structure with additional type-specific details about the resource.Resource.Builderregion(String region)The Amazon Web Services Region in which the resource was created and exists.Resource.BuilderresourceType(String resourceType)The type of the resource.Resource.Builderservice(String service)The Amazon Web Service that owns the resource and is responsible for creating and updating it.-
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 Detail
-
arn
Resource.Builder arn(String arn)
The Amazon resource name (ARN) of the resource.
- Parameters:
arn- The Amazon resource name (ARN) of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastReportedAt
Resource.Builder lastReportedAt(Instant lastReportedAt)
The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.
- Parameters:
lastReportedAt- The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
owningAccountId
Resource.Builder owningAccountId(String owningAccountId)
The Amazon Web Services account that owns the resource.
- Parameters:
owningAccountId- The Amazon Web Services account that owns the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
Resource.Builder properties(Collection<ResourceProperty> properties)
A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.
- Parameters:
properties- A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
Resource.Builder properties(ResourceProperty... properties)
A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.
- Parameters:
properties- A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
Resource.Builder properties(Consumer<ResourceProperty.Builder>... properties)
A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.
This is a convenience method that creates an instance of theResourceProperty.Builderavoiding the need to create one manually viaResourceProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#properties(List.) - Parameters:
properties- a consumer that will call methods onResourceProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#properties(java.util.Collection)
-
region
Resource.Builder region(String region)
The Amazon Web Services Region in which the resource was created and exists.
- Parameters:
region- The Amazon Web Services Region in which the resource was created and exists.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
Resource.Builder resourceType(String resourceType)
The type of the resource.
- Parameters:
resourceType- The type of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
service
Resource.Builder service(String service)
The Amazon Web Service that owns the resource and is responsible for creating and updating it.
- Parameters:
service- The Amazon Web Service that owns the resource and is responsible for creating and updating it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-