QueueServicePropertiesInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. storage. fluent. models. QueueServicePropertiesInner
- com.
- com.
public final class QueueServicePropertiesInner
extends ProxyResource
The properties of a storage account\u2019s Queue service.
Constructor Summary
Constructor | Description |
---|---|
QueueServicePropertiesInner() |
Creates an instance of Queue |
Method Summary
Modifier and Type | Method and Description |
---|---|
Cors |
cors()
Get the cors property: Specifies CORS rules for the Queue service. |
static
Queue |
fromJson(JsonReader jsonReader)
Reads an instance of Queue |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Queue |
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:
fromJson
public static QueueServicePropertiesInner fromJson(JsonReader jsonReader)
Reads an instance of QueueServicePropertiesInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
QueueServicePropertiesInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
QueueServicePropertiesInner.name()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
QueueServicePropertiesInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
QueueServicePropertiesInner.type()Returns:
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:
Returns:
Applies to
Azure SDK for Java