Class ObjectWriteConditions


  • public abstract class ObjectWriteConditions
    extends Object
    Conditions on which a object write should be allowed to continue. Corresponds to setting IfGenerationMatch and IfMetaGenerationMatch in API requests.
    • Constructor Detail

      • ObjectWriteConditions

        public ObjectWriteConditions()
    • Method Detail

      • getMetaGenerationMatch

        @Nullable
        public abstract Long getMetaGenerationMatch()
      • hasMetaGenerationMatch

        public boolean hasMetaGenerationMatch()
      • getContentGenerationMatch

        @Nullable
        public abstract Long getContentGenerationMatch()
      • hasContentGenerationMatch

        public boolean hasContentGenerationMatch()
      • apply

        public void apply​(com.google.api.services.storage.Storage.Objects.Insert objectToInsert)
        Apply the conditions represented by this object to an Insert operation.