QueueServicePropertiesInner Class

public final class QueueServicePropertiesInner
extends ProxyResource

The properties of a storage account\u2019s Queue service.

Constructor Summary

Constructor Description
QueueServicePropertiesInner()

Creates an instance of QueueServicePropertiesInner class.

Method Summary

Modifier and Type Method and Description
CorsRules cors()

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

static QueueServicePropertiesInner fromJson(JsonReader jsonReader)

Reads an instance of QueueServicePropertiesInner 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.

QueueServicePropertiesInner withCors(CorsRules cors)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

QueueServicePropertiesInner

public QueueServicePropertiesInner()

Creates an instance of QueueServicePropertiesInner class.

Method Details

cors

public CorsRules cors()

Get the cors property: Specifies CORS rules for the Queue 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 Queue service.

Returns:

the cors value.

fromJson

public static QueueServicePropertiesInner fromJson(JsonReader jsonReader)

Reads an instance of QueueServicePropertiesInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of QueueServicePropertiesInner 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:

QueueServicePropertiesInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

QueueServicePropertiesInner.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

QueueServicePropertiesInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

QueueServicePropertiesInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCors

public QueueServicePropertiesInner withCors(CorsRules cors)

Set the cors property: Specifies CORS rules for the Queue 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 Queue service.

Parameters:

cors - the cors value to set.

Returns:

the QueueServicePropertiesInner object itself.

Applies to