StorageQueueInner Class

public final class StorageQueueInner
extends ProxyResource

The StorageQueue model.

Constructor Summary

Constructor Description
StorageQueueInner()

Creates an instance of StorageQueueInner 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 StorageQueueInner fromJson(JsonReader jsonReader)

Reads an instance of StorageQueueInner from the JsonReader.

String id()

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

Map<String,String> metadata()

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

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.

StorageQueueInner withMetadata(Map<String,String> metadata)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

StorageQueueInner

public StorageQueueInner()

Creates an instance of StorageQueueInner 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 StorageQueueInner fromJson(JsonReader jsonReader)

Reads an instance of StorageQueueInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

StorageQueueInner.id()

Returns:

the id value.

metadata

public Map metadata()

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

Returns:

the metadata value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

StorageQueueInner.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StorageQueueInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

StorageQueueInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withMetadata

public StorageQueueInner withMetadata(Map metadata)

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

Parameters:

metadata - the metadata value to set.

Returns:

the StorageQueueInner object itself.

Applies to