你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

QueueProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.fluent.models.QueueProperties

Implements

public final class QueueProperties
implements JsonSerializable<QueueProperties>

The QueueProperties model.

Constructor Summary

Constructor Description
QueueProperties()

Creates an instance of QueueProperties class.

Method Summary

Modifier and Type Method and Description
Integer approximateMessageCount()

Get the approximateMessageCount property: Integer indicating an approximate number of messages in the queue.

static QueueProperties fromJson(JsonReader jsonReader)

Reads an instance of QueueProperties from the JsonReader.

Map<String,String> metadata()

Get the metadata property: A name-value pair that represents queue metadata.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

QueueProperties withMetadata(Map<String,String> metadata)

Set the metadata property: A name-value pair that represents queue metadata.

Methods inherited from java.lang.Object

Constructor Details

QueueProperties

public QueueProperties()

Creates an instance of QueueProperties class.

Method Details

approximateMessageCount

public Integer approximateMessageCount()

Get the approximateMessageCount property: Integer indicating an approximate number of messages in the queue. This number is not lower than the actual number of messages in the queue, but could be higher.

Returns:

the approximateMessageCount value.

fromJson

public static QueueProperties fromJson(JsonReader jsonReader)

Reads an instance of QueueProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the QueueProperties.

metadata

public Map<String,String> metadata()

Get the metadata property: A name-value pair that represents queue metadata.

Returns:

the metadata value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMetadata

public QueueProperties withMetadata(Map<String,String> metadata)

Set the metadata property: A name-value pair that represents queue metadata.

Parameters:

metadata - the metadata value to set.

Returns:

the QueueProperties object itself.

Applies to