Class BlobServicePropertiesInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.storage.fluent.models.BlobServicePropertiesInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class BlobServicePropertiesInner
extends com.azure.core.management.ProxyResource
The properties of a storage account’s Blob service.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BlobServicePropertiesInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the automaticSnapshotPolicyEnabled property: Deprecated in favor of isVersioningEnabled property.Get the changeFeed property: The blob service properties for change feed events.Get the containerDeleteRetentionPolicy property: The blob service properties for container soft delete.cors()Get the cors property: Specifies CORS rules for the Blob service.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.Get the deleteRetentionPolicy property: The blob service properties for blob soft delete.static BlobServicePropertiesInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BlobServicePropertiesInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the isVersioningEnabled property: Versioning is enabled if set to true.Get the lastAccessTimeTrackingPolicy property: The blob service property to configure last access time based tracking policy.name()Get the name property: The name of the resource.Get the restorePolicy property: The blob service properties for blob restore policy.sku()Get the sku property: Sku name and tier.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withAutomaticSnapshotPolicyEnabled(Boolean automaticSnapshotPolicyEnabled) Set the automaticSnapshotPolicyEnabled property: Deprecated in favor of isVersioningEnabled property.withChangeFeed(ChangeFeed changeFeed) Set the changeFeed property: The blob service properties for change feed events.withContainerDeleteRetentionPolicy(DeleteRetentionPolicy containerDeleteRetentionPolicy) Set the containerDeleteRetentionPolicy property: The blob service properties for container soft delete.Set the cors property: Specifies CORS rules for the Blob service.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.withDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy) Set the deleteRetentionPolicy property: The blob service properties for blob soft delete.withIsVersioningEnabled(Boolean isVersioningEnabled) Set the isVersioningEnabled property: Versioning is enabled if set to true.withLastAccessTimeTrackingPolicy(LastAccessTimeTrackingPolicy lastAccessTimeTrackingPolicy) Set the lastAccessTimeTrackingPolicy property: The blob service property to configure last access time based tracking policy.withRestorePolicy(RestorePolicyProperties restorePolicy) Set the restorePolicy property: The blob service properties for blob restore policy.Methods inherited from class 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
-
BlobServicePropertiesInner
public BlobServicePropertiesInner()Creates an instance of BlobServicePropertiesInner class.
-
-
Method Details
-
sku
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
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
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 BlobServicePropertiesInner object itself.
-
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
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 BlobServicePropertiesInner object itself.
-
deleteRetentionPolicy
Get the deleteRetentionPolicy property: The blob service properties for blob soft delete.- Returns:
- the deleteRetentionPolicy value.
-
withDeleteRetentionPolicy
public BlobServicePropertiesInner withDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy) Set the deleteRetentionPolicy property: The blob service properties for blob soft delete.- Parameters:
deleteRetentionPolicy- the deleteRetentionPolicy value to set.- Returns:
- the BlobServicePropertiesInner object itself.
-
isVersioningEnabled
Get the isVersioningEnabled property: Versioning is enabled if set to true.- Returns:
- the isVersioningEnabled value.
-
withIsVersioningEnabled
Set the isVersioningEnabled property: Versioning is enabled if set to true.- Parameters:
isVersioningEnabled- the isVersioningEnabled value to set.- Returns:
- the BlobServicePropertiesInner object itself.
-
automaticSnapshotPolicyEnabled
Get the automaticSnapshotPolicyEnabled property: Deprecated in favor of isVersioningEnabled property.- Returns:
- the automaticSnapshotPolicyEnabled value.
-
withAutomaticSnapshotPolicyEnabled
public BlobServicePropertiesInner withAutomaticSnapshotPolicyEnabled(Boolean automaticSnapshotPolicyEnabled) Set the automaticSnapshotPolicyEnabled property: Deprecated in favor of isVersioningEnabled property.- Parameters:
automaticSnapshotPolicyEnabled- the automaticSnapshotPolicyEnabled value to set.- Returns:
- the BlobServicePropertiesInner object itself.
-
changeFeed
Get the changeFeed property: The blob service properties for change feed events.- Returns:
- the changeFeed value.
-
withChangeFeed
Set the changeFeed property: The blob service properties for change feed events.- Parameters:
changeFeed- the changeFeed value to set.- Returns:
- the BlobServicePropertiesInner object itself.
-
restorePolicy
Get the restorePolicy property: The blob service properties for blob restore policy.- Returns:
- the restorePolicy value.
-
withRestorePolicy
Set the restorePolicy property: The blob service properties for blob restore policy.- Parameters:
restorePolicy- the restorePolicy value to set.- Returns:
- the BlobServicePropertiesInner object itself.
-
containerDeleteRetentionPolicy
Get the containerDeleteRetentionPolicy property: The blob service properties for container soft delete.- Returns:
- the containerDeleteRetentionPolicy value.
-
withContainerDeleteRetentionPolicy
public BlobServicePropertiesInner withContainerDeleteRetentionPolicy(DeleteRetentionPolicy containerDeleteRetentionPolicy) Set the containerDeleteRetentionPolicy property: The blob service properties for container soft delete.- Parameters:
containerDeleteRetentionPolicy- the containerDeleteRetentionPolicy value to set.- Returns:
- the BlobServicePropertiesInner object itself.
-
lastAccessTimeTrackingPolicy
Get the lastAccessTimeTrackingPolicy property: The blob service property to configure last access time based tracking policy.- Returns:
- the lastAccessTimeTrackingPolicy value.
-
withLastAccessTimeTrackingPolicy
public BlobServicePropertiesInner 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 BlobServicePropertiesInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static BlobServicePropertiesInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BlobServicePropertiesInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BlobServicePropertiesInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the BlobServicePropertiesInner.
-