Class ObjectReplicationPolicyFilter
java.lang.Object
com.azure.resourcemanager.storage.models.ObjectReplicationPolicyFilter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ObjectReplicationPolicyFilter>
public final class ObjectReplicationPolicyFilter
extends Object
implements com.azure.json.JsonSerializable<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
ConstructorsConstructorDescriptionCreates an instance of ObjectReplicationPolicyFilter class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ObjectReplicationPolicyFilter from the JsonReader.Get the minCreationTime property: Blobs created after the time will be replicated to the destination.Get the prefixMatch property: Optional.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMinCreationTime(String minCreationTime) Set the minCreationTime property: Blobs created after the time will be replicated to the destination.withPrefixMatch(List<String> prefixMatch) Set the prefixMatch property: Optional.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ObjectReplicationPolicyFilter
public ObjectReplicationPolicyFilter()Creates an instance of ObjectReplicationPolicyFilter class.
-
-
Method Details
-
prefixMatch
Get the prefixMatch property: Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.- Returns:
- the prefixMatch value.
-
withPrefixMatch
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.
-
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.
-
withMinCreationTime
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ObjectReplicationPolicyFilter>- Throws:
IOException
-
fromJson
public static ObjectReplicationPolicyFilter fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ObjectReplicationPolicyFilter from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ObjectReplicationPolicyFilter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ObjectReplicationPolicyFilter.
-