Class CreateUpdateContainerOptions


  • public final class CreateUpdateContainerOptions
    extends Object
    Options for creating or updating a container
    Author:
    Jeremy Unruh
    • Method Detail

      • create

        public static final CreateUpdateContainerOptions create()
        Creates a new CreateUpdateContainerOptions
        Returns:
        CreateUpdateContainerOptions
      • headers

        public CreateUpdateContainerOptions headers​(Map<String,​String> headers)
        Adds additional headers to the create or update request
        Parameters:
        headers - the headers to add
        Returns:
        CreateUpdateContainerOptions
      • metadata

        public CreateUpdateContainerOptions metadata​(Map<String,​String> metadata)
        Sets the metadata against the container being created or updated
        Parameters:
        metadata - the metadata to set
        Returns:
        CreateUpdateContainerOptions
      • versionsLocation

        public CreateUpdateContainerOptions versionsLocation​(String containerName)
        Enables versioning on this container. The value is the name of another container. You must UTF-8-encode and then URL-encode the name before you include it in the header. To disable versioning, set the header to an empty string.
        Parameters:
        containerName - the container name of the other container
        Returns:
        CreateUpdateContainerOptions
      • historyLocation

        public CreateUpdateContainerOptions historyLocation​(String containerName)
        Enables history-location versioning mode on this container. The value is the name of another container. You must UTF-8-encode and then URL-encode the name before you include it in the header. To disable versioning, set the header to an empty string.
        Parameters:
        containerName - the container name of the other container
        Returns:
        CreateUpdateContainerOptions
      • accessAnybodyRead

        public CreateUpdateContainerOptions accessAnybodyRead()
        Sets the read ACL (if supported) to allow public access
        Returns:
        CreateUpdateContainerOptions
      • accessRead

        public CreateUpdateContainerOptions accessRead​(String acl)
        Sets the read ACL (if supported)
        Parameters:
        acl - the read access control list
        Returns:
        CreateUpdateContainerOptions
      • accessWrite

        public CreateUpdateContainerOptions accessWrite​(String acl)
        Sets the write ACL (if supported)
        Parameters:
        acl - the write access control list
        Returns:
        CreateUpdateContainerOptions