com.microsoft.azure.storage.blob.models.AppendPositionAccessConditions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-storage-blob Show documentation
Show all versions of azure-storage-blob Show documentation
The Azure Storage Java Blob library.
/**
* 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 appendBlock operation.
*/
@JacksonXmlRootElement(localName = "append-position-access-conditions")
public final class AppendPositionAccessConditions {
/**
* Optional conditional header. The max length in bytes permitted for the
* append blob. If the Append Block operation would cause the blob to
* exceed that limit or if the blob size is already greater than the value
* specified in this header, the request will fail with
* MaxBlobSizeConditionNotMet error (HTTP status code 412 - Precondition
* Failed).
*/
@JsonProperty(value = "MaxSize")
private Long maxSize;
/**
* Optional conditional header, used only for the Append Block operation. A
* number indicating the byte offset to compare. Append Block will succeed
* only if the append position is equal to this number. If it is not, the
* request will fail with the AppendPositionConditionNotMet error (HTTP
* status code 412 - Precondition Failed).
*/
@JsonProperty(value = "AppendPosition")
private Long appendPosition;
/**
* Get the maxSize value.
*
* @return the maxSize value.
*/
public Long maxSize() {
return this.maxSize;
}
/**
* Set the maxSize value.
*
* @param maxSize the maxSize value to set.
* @return the AppendPositionAccessConditions object itself.
*/
public AppendPositionAccessConditions withMaxSize(Long maxSize) {
this.maxSize = maxSize;
return this;
}
/**
* Get the appendPosition value.
*
* @return the appendPosition value.
*/
public Long appendPosition() {
return this.appendPosition;
}
/**
* Set the appendPosition value.
*
* @param appendPosition the appendPosition value to set.
* @return the AppendPositionAccessConditions object itself.
*/
public AppendPositionAccessConditions withAppendPosition(Long appendPosition) {
this.appendPosition = appendPosition;
return this;
}
}