Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.storage.implementation; import com.microsoft.azure.management.storage.CorsRules; import com.microsoft.azure.management.storage.DeleteRetentionPolicy; import com.microsoft.azure.management.storage.ChangeFeed; import com.microsoft.azure.management.storage.RestorePolicyProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.ProxyResource;
The properties of a storage account’s Blob service.
/** * The properties of a storage account’s Blob service. */
@JsonFlatten public class BlobServicePropertiesInner extends ProxyResource {
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.
/** * 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. */
@JsonProperty(value = "properties.cors") private CorsRules cors;
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.
/** * 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. */
@JsonProperty(value = "properties.defaultServiceVersion") private String defaultServiceVersion;
The blob service properties for blob soft delete.
/** * The blob service properties for blob soft delete. */
@JsonProperty(value = "properties.deleteRetentionPolicy") private DeleteRetentionPolicy deleteRetentionPolicy;
Versioning is enabled if set to true.
/** * Versioning is enabled if set to true. */
@JsonProperty(value = "properties.isVersioningEnabled") private Boolean isVersioningEnabled;
Deprecated in favor of isVersioningEnabled property.
/** * Deprecated in favor of isVersioningEnabled property. */
@JsonProperty(value = "properties.automaticSnapshotPolicyEnabled") private Boolean automaticSnapshotPolicyEnabled;
The blob service properties for change feed events.
/** * The blob service properties for change feed events. */
@JsonProperty(value = "properties.changeFeed") private ChangeFeed changeFeed;
The blob service properties for blob restore policy.
/** * The blob service properties for blob restore policy. */
@JsonProperty(value = "properties.restorePolicy") private RestorePolicyProperties restorePolicy;
The blob service properties for container soft delete.
/** * The blob service properties for container soft delete. */
@JsonProperty(value = "properties.containerDeleteRetentionPolicy") private DeleteRetentionPolicy containerDeleteRetentionPolicy;
Sku name and tier.
/** * Sku name and tier. */
@JsonProperty(value = "sku", access = JsonProperty.Access.WRITE_ONLY) private SkuInner sku;
Get 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
/** * Get 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. * * @return the cors value */
public CorsRules cors() { return this.cors; }
Set 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.
Params:
  • cors – the cors value to set
Returns:the BlobServicePropertiesInner object itself.
/** * Set 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. * * @param cors the cors value to set * @return the BlobServicePropertiesInner object itself. */
public BlobServicePropertiesInner withCors(CorsRules cors) { this.cors = cors; return this; }
Get 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
/** * Get 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. * * @return the defaultServiceVersion value */
public String defaultServiceVersion() { return this.defaultServiceVersion; }
Set 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.
Params:
  • defaultServiceVersion – the defaultServiceVersion value to set
Returns:the BlobServicePropertiesInner object itself.
/** * Set 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. * * @param defaultServiceVersion the defaultServiceVersion value to set * @return the BlobServicePropertiesInner object itself. */
public BlobServicePropertiesInner withDefaultServiceVersion(String defaultServiceVersion) { this.defaultServiceVersion = defaultServiceVersion; return this; }
Get the blob service properties for blob soft delete.
Returns:the deleteRetentionPolicy value
/** * Get the blob service properties for blob soft delete. * * @return the deleteRetentionPolicy value */
public DeleteRetentionPolicy deleteRetentionPolicy() { return this.deleteRetentionPolicy; }
Set the blob service properties for blob soft delete.
Params:
  • deleteRetentionPolicy – the deleteRetentionPolicy value to set
Returns:the BlobServicePropertiesInner object itself.
/** * Set the blob service properties for blob soft delete. * * @param deleteRetentionPolicy the deleteRetentionPolicy value to set * @return the BlobServicePropertiesInner object itself. */
public BlobServicePropertiesInner withDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy) { this.deleteRetentionPolicy = deleteRetentionPolicy; return this; }
Get versioning is enabled if set to true.
Returns:the isVersioningEnabled value
/** * Get versioning is enabled if set to true. * * @return the isVersioningEnabled value */
public Boolean isVersioningEnabled() { return this.isVersioningEnabled; }
Set versioning is enabled if set to true.
Params:
  • isVersioningEnabled – the isVersioningEnabled value to set
Returns:the BlobServicePropertiesInner object itself.
/** * Set versioning is enabled if set to true. * * @param isVersioningEnabled the isVersioningEnabled value to set * @return the BlobServicePropertiesInner object itself. */
public BlobServicePropertiesInner withIsVersioningEnabled(Boolean isVersioningEnabled) { this.isVersioningEnabled = isVersioningEnabled; return this; }
Get deprecated in favor of isVersioningEnabled property.
Returns:the automaticSnapshotPolicyEnabled value
/** * Get deprecated in favor of isVersioningEnabled property. * * @return the automaticSnapshotPolicyEnabled value */
public Boolean automaticSnapshotPolicyEnabled() { return this.automaticSnapshotPolicyEnabled; }
Set deprecated in favor of isVersioningEnabled property.
Params:
  • automaticSnapshotPolicyEnabled – the automaticSnapshotPolicyEnabled value to set
Returns:the BlobServicePropertiesInner object itself.
/** * Set deprecated in favor of isVersioningEnabled property. * * @param automaticSnapshotPolicyEnabled the automaticSnapshotPolicyEnabled value to set * @return the BlobServicePropertiesInner object itself. */
public BlobServicePropertiesInner withAutomaticSnapshotPolicyEnabled(Boolean automaticSnapshotPolicyEnabled) { this.automaticSnapshotPolicyEnabled = automaticSnapshotPolicyEnabled; return this; }
Get the blob service properties for change feed events.
Returns:the changeFeed value
/** * Get the blob service properties for change feed events. * * @return the changeFeed value */
public ChangeFeed changeFeed() { return this.changeFeed; }
Set the blob service properties for change feed events.
Params:
  • changeFeed – the changeFeed value to set
Returns:the BlobServicePropertiesInner object itself.
/** * Set the blob service properties for change feed events. * * @param changeFeed the changeFeed value to set * @return the BlobServicePropertiesInner object itself. */
public BlobServicePropertiesInner withChangeFeed(ChangeFeed changeFeed) { this.changeFeed = changeFeed; return this; }
Get the blob service properties for blob restore policy.
Returns:the restorePolicy value
/** * Get the blob service properties for blob restore policy. * * @return the restorePolicy value */
public RestorePolicyProperties restorePolicy() { return this.restorePolicy; }
Set the blob service properties for blob restore policy.
Params:
  • restorePolicy – the restorePolicy value to set
Returns:the BlobServicePropertiesInner object itself.
/** * Set the blob service properties for blob restore policy. * * @param restorePolicy the restorePolicy value to set * @return the BlobServicePropertiesInner object itself. */
public BlobServicePropertiesInner withRestorePolicy(RestorePolicyProperties restorePolicy) { this.restorePolicy = restorePolicy; return this; }
Get the blob service properties for container soft delete.
Returns:the containerDeleteRetentionPolicy value
/** * Get the blob service properties for container soft delete. * * @return the containerDeleteRetentionPolicy value */
public DeleteRetentionPolicy containerDeleteRetentionPolicy() { return this.containerDeleteRetentionPolicy; }
Set the blob service properties for container soft delete.
Params:
  • containerDeleteRetentionPolicy – the containerDeleteRetentionPolicy value to set
Returns:the BlobServicePropertiesInner object itself.
/** * Set the blob service properties for container soft delete. * * @param containerDeleteRetentionPolicy the containerDeleteRetentionPolicy value to set * @return the BlobServicePropertiesInner object itself. */
public BlobServicePropertiesInner withContainerDeleteRetentionPolicy(DeleteRetentionPolicy containerDeleteRetentionPolicy) { this.containerDeleteRetentionPolicy = containerDeleteRetentionPolicy; return this; }
Get sku name and tier.
Returns:the sku value
/** * Get sku name and tier. * * @return the sku value */
public SkuInner sku() { return this.sku; } }