TableServicePropertiesInner Class

public final class TableServicePropertiesInner
extends ProxyResource

The properties of a storage account\u2019s Table service.

Constructor Summary

Constructor Description
TableServicePropertiesInner()

Creates an instance of TableServicePropertiesInner class.

Method Summary

Modifier and Type Method and Description
CorsRules cors()

Get the cors property: Specifies CORS rules for the Table service.

static TableServicePropertiesInner fromJson(JsonReader jsonReader)

Reads an instance of TableServicePropertiesInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

TableServicePropertiesInner withCors(CorsRules cors)

Set the cors property: Specifies CORS rules for the Table service.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

TableServicePropertiesInner

public TableServicePropertiesInner()

Creates an instance of TableServicePropertiesInner class.

Method Details

cors

public CorsRules cors()

Get the cors property: 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.

fromJson

public static TableServicePropertiesInner fromJson(JsonReader jsonReader)

Reads an instance of TableServicePropertiesInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TableServicePropertiesInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

TableServicePropertiesInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

TableServicePropertiesInner.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

TableServicePropertiesInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

TableServicePropertiesInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCors

public TableServicePropertiesInner withCors(CorsRules cors)

Set the cors property: 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.

Parameters:

cors - the cors value to set.

Returns:

the TableServicePropertiesInner object itself.

Applies to