ObjectReplicationPolicyFilter Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.ObjectReplicationPolicyFilter

public final class ObjectReplicationPolicyFilter

Filters limit replication to a subset of blobs within the storage account. A logical OR is performed on values in the filter. If multiple filters are defined, a logical AND is performed on all filters.

Constructor Summary

Constructor Description
ObjectReplicationPolicyFilter()

Creates an instance of ObjectReplicationPolicyFilter class.

Method Summary

Modifier and Type Method and Description
String minCreationTime()

Get the minCreationTime property: Blobs created after the time will be replicated to the destination.

List<String> prefixMatch()

Get the prefixMatch property: Optional.

void validate()

Validates the instance.

ObjectReplicationPolicyFilter withMinCreationTime(String minCreationTime)

Set the minCreationTime property: Blobs created after the time will be replicated to the destination.

ObjectReplicationPolicyFilter withPrefixMatch(List<String> prefixMatch)

Set the prefixMatch property: Optional.

Methods inherited from java.lang.Object

Constructor Details

ObjectReplicationPolicyFilter

public ObjectReplicationPolicyFilter()

Creates an instance of ObjectReplicationPolicyFilter class.

Method Details

minCreationTime

public String minCreationTime()

Get the minCreationTime property: Blobs created after the time will be replicated to the destination. It must be in datetime format 'yyyy-MM-ddTHH:mm:ssZ'. Example: 2020-02-19T16:05:00Z.

Returns:

the minCreationTime value.

prefixMatch

public List prefixMatch()

Get the prefixMatch property: Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.

Returns:

the prefixMatch value.

validate

public void validate()

Validates the instance.

withMinCreationTime

public ObjectReplicationPolicyFilter withMinCreationTime(String minCreationTime)

Set the minCreationTime property: Blobs created after the time will be replicated to the destination. It must be in datetime format 'yyyy-MM-ddTHH:mm:ssZ'. Example: 2020-02-19T16:05:00Z.

Parameters:

minCreationTime - the minCreationTime value to set.

Returns:

the ObjectReplicationPolicyFilter object itself.

withPrefixMatch

public ObjectReplicationPolicyFilter withPrefixMatch(List prefixMatch)

Set the prefixMatch property: Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.

Parameters:

prefixMatch - the prefixMatch value to set.

Returns:

the ObjectReplicationPolicyFilter object itself.

Applies to