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.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.ProxyResource;
The properties of a storage account’s Table service.
/** * The properties of a storage account’s Table service. */
@JsonFlatten public class TableServicePropertiesInner extends ProxyResource {
Specifies CORS rules for the Table 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 Table service.
/** * Specifies CORS rules for the Table 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 Table service. */
@JsonProperty(value = "properties.cors") private CorsRules cors;
Get specifies CORS rules for the Table 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 Table service.
Returns:the cors value
/** * Get specifies CORS rules for the Table 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 Table service. * * @return the cors value */
public CorsRules cors() { return this.cors; }
Set specifies CORS rules for the Table 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 Table service.
Params:
  • cors – the cors value to set
Returns:the TableServicePropertiesInner object itself.
/** * Set specifies CORS rules for the Table 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 Table service. * * @param cors the cors value to set * @return the TableServicePropertiesInner object itself. */
public TableServicePropertiesInner withCors(CorsRules cors) { this.cors = cors; return this; } }