Partager via


DataLakeRequestConditions Class

public class DataLakeRequestConditions
extends RequestConditions

This class contains values which will restrict the successful operation of a variety of requests to the conditions present. These conditions are entirely optional. The entire object or any of its properties may be set to null when passed to a method to indicate that those conditions are not desired. Please refer to the type of each field for more information on those particular access conditions.

Constructor Summary

Constructor Description
DataLakeRequestConditions()

Method Summary

Modifier and Type Method and Description
String getLeaseId()

Gets the lease ID that blobs and containers must match.

DataLakeRequestConditions setIfMatch(String ifMatch)

Optionally limit requests to resources that match the passed ETag.

DataLakeRequestConditions setIfModifiedSince(OffsetDateTime ifModifiedSince)

Optionally limit requests to resources that have only been modified since the passed datetime.

DataLakeRequestConditions setIfNoneMatch(String ifNoneMatch)

Optionally limit requests to resources that do not match the passed ETag.

DataLakeRequestConditions setIfUnmodifiedSince(OffsetDateTime ifUnmodifiedSince)

Optionally limit requests to resources that have remained unmodified since the passed datetime.

DataLakeRequestConditions setLeaseId(String leaseId)

Optionally limits requests to blobs and containers that match the lease ID.

Methods inherited from MatchConditions

Methods inherited from RequestConditions

Methods inherited from java.lang.Object

Constructor Details

DataLakeRequestConditions

public DataLakeRequestConditions()

Method Details

getLeaseId

public String getLeaseId()

Gets the lease ID that blobs and containers must match.

Returns:

The lease ID that blobs and containers must match.

setIfMatch

public DataLakeRequestConditions setIfMatch(String ifMatch)

Optionally limit requests to resources that match the passed ETag.

Overrides:

DataLakeRequestConditions.setIfMatch(String ifMatch)

Parameters:

ifMatch - ETag that resources must match.

Returns:

The updated DataLakeRequestConditions object.

setIfModifiedSince

public DataLakeRequestConditions setIfModifiedSince(OffsetDateTime ifModifiedSince)

Optionally limit requests to resources that have only been modified since the passed datetime.

Overrides:

DataLakeRequestConditions.setIfModifiedSince(OffsetDateTime ifModifiedSince)

Parameters:

ifModifiedSince - The datetime that resources must have been modified since.

Returns:

The updated DataLakeRequestConditions object.

setIfNoneMatch

public DataLakeRequestConditions setIfNoneMatch(String ifNoneMatch)

Optionally limit requests to resources that do not match the passed ETag.

Overrides:

DataLakeRequestConditions.setIfNoneMatch(String ifNoneMatch)

Parameters:

ifNoneMatch - ETag that resources must not match.

Returns:

The updated DataLakeRequestConditions object.

setIfUnmodifiedSince

public DataLakeRequestConditions setIfUnmodifiedSince(OffsetDateTime ifUnmodifiedSince)

Optionally limit requests to resources that have remained unmodified since the passed datetime.

Overrides:

DataLakeRequestConditions.setIfUnmodifiedSince(OffsetDateTime ifUnmodifiedSince)

Parameters:

ifUnmodifiedSince - The datetime that resources must have remained unmodified since.

Returns:

The updated DataLakeRequestConditions object.

setLeaseId

public DataLakeRequestConditions setLeaseId(String leaseId)

Optionally limits requests to blobs and containers that match the lease ID.

Parameters:

leaseId - Lease ID that blobs and containers must match.

Returns:

The updated DataLakeRequestConditions object.

Applies to