BlobServicePropertiesInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. storage. fluent. models. BlobServicePropertiesInner
- com.
- com.
public final class BlobServicePropertiesInner
extends ProxyResource
The properties of a storage account\u2019s Blob service.
Constructor Summary
Constructor | Description |
---|---|
BlobServicePropertiesInner() |
Creates an instance of Blob |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
automaticSnapshotPolicyEnabled()
Get the automatic |
Change |
changeFeed()
Get the change |
Delete |
containerDeleteRetentionPolicy()
Get the container |
Cors |
cors()
Get the cors property: Specifies CORS rules for the Blob service. |
String |
defaultServiceVersion()
Get the default |
Delete |
deleteRetentionPolicy()
Get the delete |
static
Blob |
fromJson(JsonReader jsonReader)
Reads an instance of Blob |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Boolean |
isVersioningEnabled()
Get the is |
Last |
lastAccessTimeTrackingPolicy()
Get the last |
String |
name()
Get the name property: The name of the resource. |
Restore |
restorePolicy()
Get the restore |
Sku |
sku()
Get the sku property: Sku name and tier. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Blob |
withAutomaticSnapshotPolicyEnabled(Boolean automaticSnapshotPolicyEnabled)
Set the automatic |
Blob |
withChangeFeed(ChangeFeed changeFeed)
Set the change |
Blob |
withContainerDeleteRetentionPolicy(DeleteRetentionPolicy containerDeleteRetentionPolicy)
Set the container |
Blob |
withCors(CorsRules cors)
Set the cors property: Specifies CORS rules for the Blob service. |
Blob |
withDefaultServiceVersion(String defaultServiceVersion)
Set the default |
Blob |
withDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy)
Set the delete |
Blob |
withIsVersioningEnabled(Boolean isVersioningEnabled)
Set the is |
Blob |
withLastAccessTimeTrackingPolicy(LastAccessTimeTrackingPolicy lastAccessTimeTrackingPolicy)
Set the last |
Blob |
withRestorePolicy(RestorePolicyProperties restorePolicy)
Set the restore |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
BlobServicePropertiesInner
public BlobServicePropertiesInner()
Creates an instance of BlobServicePropertiesInner class.
Method Details
automaticSnapshotPolicyEnabled
public Boolean automaticSnapshotPolicyEnabled()
Get the automaticSnapshotPolicyEnabled property: Deprecated in favor of isVersioningEnabled property.
Returns:
changeFeed
public ChangeFeed changeFeed()
Get the changeFeed property: The blob service properties for change feed events.
Returns:
containerDeleteRetentionPolicy
public DeleteRetentionPolicy containerDeleteRetentionPolicy()
Get the containerDeleteRetentionPolicy property: The blob service properties for container soft delete.
Returns:
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:
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\u2019s version is not specified. Possible values include version 2008-10-27 and all more recent versions.
Returns:
deleteRetentionPolicy
public DeleteRetentionPolicy deleteRetentionPolicy()
Get the deleteRetentionPolicy property: The blob service properties for blob soft delete.
Returns:
fromJson
public static BlobServicePropertiesInner fromJson(JsonReader jsonReader)
Reads an instance of BlobServicePropertiesInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
BlobServicePropertiesInner.id()Returns:
isVersioningEnabled
public Boolean isVersioningEnabled()
Get the isVersioningEnabled property: Versioning is enabled if set to true.
Returns:
lastAccessTimeTrackingPolicy
public LastAccessTimeTrackingPolicy lastAccessTimeTrackingPolicy()
Get the lastAccessTimeTrackingPolicy property: The blob service property to configure last access time based tracking policy.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
BlobServicePropertiesInner.name()Returns:
restorePolicy
public RestorePolicyProperties restorePolicy()
Get the restorePolicy property: The blob service properties for blob restore policy.
Returns:
sku
public Sku sku()
Get the sku property: Sku name and tier.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
BlobServicePropertiesInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
BlobServicePropertiesInner.type()Returns:
validate
public void validate()
Validates the instance.
withAutomaticSnapshotPolicyEnabled
public BlobServicePropertiesInner withAutomaticSnapshotPolicyEnabled(Boolean automaticSnapshotPolicyEnabled)
Set the automaticSnapshotPolicyEnabled property: Deprecated in favor of isVersioningEnabled property.
Parameters:
Returns:
withChangeFeed
public BlobServicePropertiesInner withChangeFeed(ChangeFeed changeFeed)
Set the changeFeed property: The blob service properties for change feed events.
Parameters:
Returns:
withContainerDeleteRetentionPolicy
public BlobServicePropertiesInner withContainerDeleteRetentionPolicy(DeleteRetentionPolicy containerDeleteRetentionPolicy)
Set the containerDeleteRetentionPolicy property: The blob service properties for container soft delete.
Parameters:
Returns:
withCors
public BlobServicePropertiesInner 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:
Returns:
withDefaultServiceVersion
public BlobServicePropertiesInner withDefaultServiceVersion(String defaultServiceVersion)
Set the defaultServiceVersion property: DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request\u2019s version is not specified. Possible values include version 2008-10-27 and all more recent versions.
Parameters:
Returns:
withDeleteRetentionPolicy
public BlobServicePropertiesInner withDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy)
Set the deleteRetentionPolicy property: The blob service properties for blob soft delete.
Parameters:
Returns:
withIsVersioningEnabled
public BlobServicePropertiesInner withIsVersioningEnabled(Boolean isVersioningEnabled)
Set the isVersioningEnabled property: Versioning is enabled if set to true.
Parameters:
Returns:
withLastAccessTimeTrackingPolicy
public BlobServicePropertiesInner withLastAccessTimeTrackingPolicy(LastAccessTimeTrackingPolicy lastAccessTimeTrackingPolicy)
Set the lastAccessTimeTrackingPolicy property: The blob service property to configure last access time based tracking policy.
Parameters:
Returns:
withRestorePolicy
public BlobServicePropertiesInner withRestorePolicy(RestorePolicyProperties restorePolicy)
Set the restorePolicy property: The blob service properties for blob restore policy.
Parameters:
Returns:
Applies to
Azure SDK for Java