Class BulkActionResource.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • identifier

        public BulkActionResource.Builder identifier​(String identifier)
        The resource OCID.
        Parameters:
        identifier - the value to set
        Returns:
        this builder
      • entityType

        public BulkActionResource.Builder entityType​(String entityType)
        The resource-type.

        To get the list of supported resource-types use listBulkActionResourceTypes.

        Parameters:
        entityType - the value to set
        Returns:
        this builder
      • metadata

        public 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": "" "entityType": "bucket", "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } }

        Parameters:
        metadata - the value to set
        Returns:
        this builder