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.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.ProxyResource;
The properties of File services in storage account.
/**
* The properties of File services in storage account.
*/
@JsonFlatten
public class FileServicePropertiesInner extends ProxyResource {
Specifies CORS rules for the File 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 File service.
/**
* Specifies CORS rules for the File 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 File service.
*/
@JsonProperty(value = "properties.cors")
private CorsRules cors;
The file service properties for share soft delete.
/**
* The file service properties for share soft delete.
*/
@JsonProperty(value = "properties.shareDeleteRetentionPolicy")
private DeleteRetentionPolicy shareDeleteRetentionPolicy;
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 File 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 File service.
Returns: the cors value
/**
* Get specifies CORS rules for the File 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 File service.
*
* @return the cors value
*/
public CorsRules cors() {
return this.cors;
}
Set specifies CORS rules for the File 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 File service.
Params: - cors – the cors value to set
Returns: the FileServicePropertiesInner object itself.
/**
* Set specifies CORS rules for the File 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 File service.
*
* @param cors the cors value to set
* @return the FileServicePropertiesInner object itself.
*/
public FileServicePropertiesInner withCors(CorsRules cors) {
this.cors = cors;
return this;
}
Get the file service properties for share soft delete.
Returns: the shareDeleteRetentionPolicy value
/**
* Get the file service properties for share soft delete.
*
* @return the shareDeleteRetentionPolicy value
*/
public DeleteRetentionPolicy shareDeleteRetentionPolicy() {
return this.shareDeleteRetentionPolicy;
}
Set the file service properties for share soft delete.
Params: - shareDeleteRetentionPolicy – the shareDeleteRetentionPolicy value to set
Returns: the FileServicePropertiesInner object itself.
/**
* Set the file service properties for share soft delete.
*
* @param shareDeleteRetentionPolicy the shareDeleteRetentionPolicy value to set
* @return the FileServicePropertiesInner object itself.
*/
public FileServicePropertiesInner withShareDeleteRetentionPolicy(DeleteRetentionPolicy shareDeleteRetentionPolicy) {
this.shareDeleteRetentionPolicy = shareDeleteRetentionPolicy;
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;
}
}