Class BlobServicePropertiesProperties
- java.lang.Object
-
- com.azure.resourcemanager.storage.fluent.models.BlobServicePropertiesProperties
-
public final class BlobServicePropertiesProperties extends Object
The properties of a storage account’s Blob service.
-
-
Constructor Summary
Constructors Constructor Description BlobServicePropertiesProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanautomaticSnapshotPolicyEnabled()Get the automaticSnapshotPolicyEnabled property: Deprecated in favor of isVersioningEnabled property.ChangeFeedchangeFeed()Get the changeFeed property: The blob service properties for change feed events.DeleteRetentionPolicycontainerDeleteRetentionPolicy()Get the containerDeleteRetentionPolicy property: The blob service properties for container soft delete.CorsRulescors()Get the cors property: Specifies CORS rules for the Blob service.StringdefaultServiceVersion()Get the defaultServiceVersion property: DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified.DeleteRetentionPolicydeleteRetentionPolicy()Get the deleteRetentionPolicy property: The blob service properties for blob soft delete.BooleanisVersioningEnabled()Get the isVersioningEnabled property: Versioning is enabled if set to true.LastAccessTimeTrackingPolicylastAccessTimeTrackingPolicy()Get the lastAccessTimeTrackingPolicy property: The blob service property to configure last access time based tracking policy.RestorePolicyPropertiesrestorePolicy()Get the restorePolicy property: The blob service properties for blob restore policy.voidvalidate()Validates the instance.BlobServicePropertiesPropertieswithAutomaticSnapshotPolicyEnabled(Boolean automaticSnapshotPolicyEnabled)Set the automaticSnapshotPolicyEnabled property: Deprecated in favor of isVersioningEnabled property.BlobServicePropertiesPropertieswithChangeFeed(ChangeFeed changeFeed)Set the changeFeed property: The blob service properties for change feed events.BlobServicePropertiesPropertieswithContainerDeleteRetentionPolicy(DeleteRetentionPolicy containerDeleteRetentionPolicy)Set the containerDeleteRetentionPolicy property: The blob service properties for container soft delete.BlobServicePropertiesPropertieswithCors(CorsRules cors)Set the cors property: Specifies CORS rules for the Blob service.BlobServicePropertiesPropertieswithDefaultServiceVersion(String defaultServiceVersion)Set the defaultServiceVersion property: DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified.BlobServicePropertiesPropertieswithDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy)Set the deleteRetentionPolicy property: The blob service properties for blob soft delete.BlobServicePropertiesPropertieswithIsVersioningEnabled(Boolean isVersioningEnabled)Set the isVersioningEnabled property: Versioning is enabled if set to true.BlobServicePropertiesPropertieswithLastAccessTimeTrackingPolicy(LastAccessTimeTrackingPolicy lastAccessTimeTrackingPolicy)Set the lastAccessTimeTrackingPolicy property: The blob service property to configure last access time based tracking policy.BlobServicePropertiesPropertieswithRestorePolicy(RestorePolicyProperties restorePolicy)Set the restorePolicy property: The blob service properties for blob restore policy.
-
-
-
Method Detail
-
cors
public CorsRules cors()
Get the cors property: Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service.- Returns:
- the cors value.
-
withCors
public BlobServicePropertiesProperties withCors(CorsRules cors)
Set the cors property: Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service.- Parameters:
cors- the cors value to set.- Returns:
- the BlobServicePropertiesProperties object itself.
-
defaultServiceVersion
public String defaultServiceVersion()
Get the defaultServiceVersion property: DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions.- Returns:
- the defaultServiceVersion value.
-
withDefaultServiceVersion
public BlobServicePropertiesProperties withDefaultServiceVersion(String defaultServiceVersion)
Set the defaultServiceVersion property: DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions.- Parameters:
defaultServiceVersion- the defaultServiceVersion value to set.- Returns:
- the BlobServicePropertiesProperties object itself.
-
deleteRetentionPolicy
public DeleteRetentionPolicy deleteRetentionPolicy()
Get the deleteRetentionPolicy property: The blob service properties for blob soft delete.- Returns:
- the deleteRetentionPolicy value.
-
withDeleteRetentionPolicy
public BlobServicePropertiesProperties withDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy)
Set the deleteRetentionPolicy property: The blob service properties for blob soft delete.- Parameters:
deleteRetentionPolicy- the deleteRetentionPolicy value to set.- Returns:
- the BlobServicePropertiesProperties object itself.
-
isVersioningEnabled
public Boolean isVersioningEnabled()
Get the isVersioningEnabled property: Versioning is enabled if set to true.- Returns:
- the isVersioningEnabled value.
-
withIsVersioningEnabled
public BlobServicePropertiesProperties withIsVersioningEnabled(Boolean isVersioningEnabled)
Set the isVersioningEnabled property: Versioning is enabled if set to true.- Parameters:
isVersioningEnabled- the isVersioningEnabled value to set.- Returns:
- the BlobServicePropertiesProperties object itself.
-
automaticSnapshotPolicyEnabled
public Boolean automaticSnapshotPolicyEnabled()
Get the automaticSnapshotPolicyEnabled property: Deprecated in favor of isVersioningEnabled property.- Returns:
- the automaticSnapshotPolicyEnabled value.
-
withAutomaticSnapshotPolicyEnabled
public BlobServicePropertiesProperties withAutomaticSnapshotPolicyEnabled(Boolean automaticSnapshotPolicyEnabled)
Set the automaticSnapshotPolicyEnabled property: Deprecated in favor of isVersioningEnabled property.- Parameters:
automaticSnapshotPolicyEnabled- the automaticSnapshotPolicyEnabled value to set.- Returns:
- the BlobServicePropertiesProperties object itself.
-
changeFeed
public ChangeFeed changeFeed()
Get the changeFeed property: The blob service properties for change feed events.- Returns:
- the changeFeed value.
-
withChangeFeed
public BlobServicePropertiesProperties withChangeFeed(ChangeFeed changeFeed)
Set the changeFeed property: The blob service properties for change feed events.- Parameters:
changeFeed- the changeFeed value to set.- Returns:
- the BlobServicePropertiesProperties object itself.
-
restorePolicy
public RestorePolicyProperties restorePolicy()
Get the restorePolicy property: The blob service properties for blob restore policy.- Returns:
- the restorePolicy value.
-
withRestorePolicy
public BlobServicePropertiesProperties withRestorePolicy(RestorePolicyProperties restorePolicy)
Set the restorePolicy property: The blob service properties for blob restore policy.- Parameters:
restorePolicy- the restorePolicy value to set.- Returns:
- the BlobServicePropertiesProperties object itself.
-
containerDeleteRetentionPolicy
public DeleteRetentionPolicy containerDeleteRetentionPolicy()
Get the containerDeleteRetentionPolicy property: The blob service properties for container soft delete.- Returns:
- the containerDeleteRetentionPolicy value.
-
withContainerDeleteRetentionPolicy
public BlobServicePropertiesProperties withContainerDeleteRetentionPolicy(DeleteRetentionPolicy containerDeleteRetentionPolicy)
Set the containerDeleteRetentionPolicy property: The blob service properties for container soft delete.- Parameters:
containerDeleteRetentionPolicy- the containerDeleteRetentionPolicy value to set.- Returns:
- the BlobServicePropertiesProperties object itself.
-
lastAccessTimeTrackingPolicy
public LastAccessTimeTrackingPolicy lastAccessTimeTrackingPolicy()
Get the lastAccessTimeTrackingPolicy property: The blob service property to configure last access time based tracking policy.- Returns:
- the lastAccessTimeTrackingPolicy value.
-
withLastAccessTimeTrackingPolicy
public BlobServicePropertiesProperties withLastAccessTimeTrackingPolicy(LastAccessTimeTrackingPolicy lastAccessTimeTrackingPolicy)
Set the lastAccessTimeTrackingPolicy property: The blob service property to configure last access time based tracking policy.- Parameters:
lastAccessTimeTrackingPolicy- the lastAccessTimeTrackingPolicy value to set.- Returns:
- the BlobServicePropertiesProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-