Class Compression


  • public final class Compression
    extends Object
    Describes how input data is compressed.
    • Constructor Detail

      • Compression

        public Compression()
    • Method Detail

      • type

        public CompressionType type()
        Get the type property: Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests.
        Returns:
        the type value.
      • withType

        public Compression withType​(CompressionType type)
        Set the type property: Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests.
        Parameters:
        type - the type value to set.
        Returns:
        the Compression object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.