public static class BulkActionResource.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BulkActionResource |
build() |
BulkActionResource.Builder |
copy(BulkActionResource model) |
BulkActionResource.Builder |
entityType(String entityType)
The resource-type.
|
BulkActionResource.Builder |
identifier(String identifier)
The resource OCID.
|
BulkActionResource.Builder |
metadata(Map<String,String> metadata)
Additional information that helps to identity the resource for bulk action.
|
public BulkActionResource.Builder identifier(String identifier)
The resource OCID.
identifier
- the value to setpublic BulkActionResource.Builder entityType(String entityType)
The resource-type. To get the list of supported resource-types use listBulkActionResourceTypes
.
entityType
- the value to setpublic BulkActionResource.Builder metadata(Map<String,String> metadata)
Additional information that helps to identity the resource for bulk action.
The APIs to delete and move most resource types only require the resource identifier (ocid). But some resource-types require additional identifying information.
This information is provided in the resource's public API document. It is also
available through the listBulkActionResourceTypes
.
*Example**: The APIs to delete or move the buckets
resource-type require
namespaceName
and bucketName
to identify the resource, as shown in the
APIs, deleteBucket
and updateBucket
.
To add a bucket for bulk actions, specify namespaceName
and bucketName
in the metadata property as shown in this example
{ "identifier": "
metadata
- the value to setpublic BulkActionResource build()
public BulkActionResource.Builder copy(BulkActionResource model)
Copyright © 2016–2024. All rights reserved.