All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.storage.blob.models.SequenceNumberAccessConditions Maven / Gradle / Ivy

There is a newer version: 11.0.1
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

package com.microsoft.azure.storage.blob.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

/**
 * Additional parameters for a set of operations, such as:
 * PageBlob_uploadPages, PageBlob_clearPages.
 */
@JacksonXmlRootElement(localName = "sequence-number-access-conditions")
public final class SequenceNumberAccessConditions {
    /**
     * Specify this header value to operate only on a blob if it has a sequence
     * number less than or equal to the specified.
     */
    @JsonProperty(value = "IfSequenceNumberLessThanOrEqualTo")
    private Long ifSequenceNumberLessThanOrEqualTo;

    /**
     * Specify this header value to operate only on a blob if it has a sequence
     * number less than the specified.
     */
    @JsonProperty(value = "IfSequenceNumberLessThan")
    private Long ifSequenceNumberLessThan;

    /**
     * Specify this header value to operate only on a blob if it has the
     * specified sequence number.
     */
    @JsonProperty(value = "IfSequenceNumberEqualTo")
    private Long ifSequenceNumberEqualTo;

    /**
     * Get the ifSequenceNumberLessThanOrEqualTo value.
     *
     * @return the ifSequenceNumberLessThanOrEqualTo value.
     */
    public Long ifSequenceNumberLessThanOrEqualTo() {
        return this.ifSequenceNumberLessThanOrEqualTo;
    }

    /**
     * Set the ifSequenceNumberLessThanOrEqualTo value.
     *
     * @param ifSequenceNumberLessThanOrEqualTo the
     * ifSequenceNumberLessThanOrEqualTo value to set.
     * @return the SequenceNumberAccessConditions object itself.
     */
    public SequenceNumberAccessConditions withIfSequenceNumberLessThanOrEqualTo(Long ifSequenceNumberLessThanOrEqualTo) {
        this.ifSequenceNumberLessThanOrEqualTo = ifSequenceNumberLessThanOrEqualTo;
        return this;
    }

    /**
     * Get the ifSequenceNumberLessThan value.
     *
     * @return the ifSequenceNumberLessThan value.
     */
    public Long ifSequenceNumberLessThan() {
        return this.ifSequenceNumberLessThan;
    }

    /**
     * Set the ifSequenceNumberLessThan value.
     *
     * @param ifSequenceNumberLessThan the ifSequenceNumberLessThan value to
     * set.
     * @return the SequenceNumberAccessConditions object itself.
     */
    public SequenceNumberAccessConditions withIfSequenceNumberLessThan(Long ifSequenceNumberLessThan) {
        this.ifSequenceNumberLessThan = ifSequenceNumberLessThan;
        return this;
    }

    /**
     * Get the ifSequenceNumberEqualTo value.
     *
     * @return the ifSequenceNumberEqualTo value.
     */
    public Long ifSequenceNumberEqualTo() {
        return this.ifSequenceNumberEqualTo;
    }

    /**
     * Set the ifSequenceNumberEqualTo value.
     *
     * @param ifSequenceNumberEqualTo the ifSequenceNumberEqualTo value to set.
     * @return the SequenceNumberAccessConditions object itself.
     */
    public SequenceNumberAccessConditions withIfSequenceNumberEqualTo(Long ifSequenceNumberEqualTo) {
        this.ifSequenceNumberEqualTo = ifSequenceNumberEqualTo;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy