NamespaceProperties Class

  • java.lang.Object
    • com.azure.messaging.servicebus.administration.models.NamespaceProperties

Implements

public final class NamespaceProperties
implements XmlSerializable<NamespaceProperties>

The metadata related to a Service Bus namespace.

Constructor Summary

Constructor Description
NamespaceProperties()

Creates an instance of NamespaceProperties class.

Method Summary

Modifier and Type Method and Description
static NamespaceProperties fromXml(XmlReader xmlReader)

Reads an instance of NamespaceProperties from the XmlReader.

static NamespaceProperties fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of NamespaceProperties from the XmlReader.

String getAlias()

Get the alias property: Alias for the geo-disaster recovery Service Bus namespace.

OffsetDateTime getCreatedTime()

Get the createdTime property: The exact time the namespace was created.

MessagingSku getMessagingSku()

Get the messagingSku property: The SKU for the messaging entity.

Integer getMessagingUnits()

Get the messagingUnits property: The number of messaging units allocated to the namespace.

OffsetDateTime getModifiedTime()

Get the modifiedTime property: The exact time the namespace was last modified.

String getName()

Get the name property: Name of the namespace.

NamespaceType getNamespaceType()

Get the namespaceType property: The type of entities the namespace can contain.

NamespaceProperties setAlias(String alias)

Set the alias property: Alias for the geo-disaster recovery Service Bus namespace.

NamespaceProperties setMessagingSku(MessagingSku messagingSku)

Set the messagingSku property: The SKU for the messaging entity.

NamespaceProperties setMessagingUnits(Integer messagingUnits)

Set the messagingUnits property: The number of messaging units allocated to the namespace.

NamespaceProperties setModifiedTime(OffsetDateTime modifiedTime)

Set the modifiedTime property: The exact time the namespace was last modified.

NamespaceProperties setName(String name)

Set the name property: Name of the namespace.

NamespaceProperties setNamespaceType(NamespaceType namespaceType)

Set the namespaceType property: The type of entities the namespace can contain.

XmlWriter toXml(XmlWriter xmlWriter)
XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Methods inherited from java.lang.Object

Constructor Details

NamespaceProperties

public NamespaceProperties()

Creates an instance of NamespaceProperties class.

Method Details

fromXml

public static NamespaceProperties fromXml(XmlReader xmlReader)

Reads an instance of NamespaceProperties from the XmlReader.

Parameters:

xmlReader - The XmlReader being read.

Returns:

An instance of NamespaceProperties if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.

Throws:

XMLStreamException

- If an error occurs while reading the NamespaceProperties.

fromXml

public static NamespaceProperties fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of NamespaceProperties from the XmlReader.

Parameters:

xmlReader - The XmlReader being read.
rootElementName - Optional root element name to override the default defined by the model. Used to support cases where the model can deserialize from different root element names.

Returns:

An instance of NamespaceProperties if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.

Throws:

XMLStreamException

- If an error occurs while reading the NamespaceProperties.

getAlias

public String getAlias()

Get the alias property: Alias for the geo-disaster recovery Service Bus namespace.

Returns:

the alias value.

getCreatedTime

public OffsetDateTime getCreatedTime()

Get the createdTime property: The exact time the namespace was created.

Returns:

the createdTime value.

getMessagingSku

public MessagingSku getMessagingSku()

Get the messagingSku property: The SKU for the messaging entity.

Returns:

the messagingSku value.

getMessagingUnits

public Integer getMessagingUnits()

Get the messagingUnits property: The number of messaging units allocated to the namespace.

Returns:

the messagingUnits value.

getModifiedTime

public OffsetDateTime getModifiedTime()

Get the modifiedTime property: The exact time the namespace was last modified.

Returns:

the modifiedTime value.

getName

public String getName()

Get the name property: Name of the namespace.

Returns:

the name value.

getNamespaceType

public NamespaceType getNamespaceType()

Get the namespaceType property: The type of entities the namespace can contain.

Returns:

the namespaceType value.

setAlias

public NamespaceProperties setAlias(String alias)

Set the alias property: Alias for the geo-disaster recovery Service Bus namespace.

Parameters:

alias - the alias value to set.

Returns:

the NamespaceProperties object itself.

setMessagingSku

public NamespaceProperties setMessagingSku(MessagingSku messagingSku)

Set the messagingSku property: The SKU for the messaging entity.

Parameters:

messagingSku - the messagingSku value to set.

Returns:

the NamespaceProperties object itself.

setMessagingUnits

public NamespaceProperties setMessagingUnits(Integer messagingUnits)

Set the messagingUnits property: The number of messaging units allocated to the namespace.

Parameters:

messagingUnits - the messagingUnits value to set.

Returns:

the NamespaceProperties object itself.

setModifiedTime

public NamespaceProperties setModifiedTime(OffsetDateTime modifiedTime)

Set the modifiedTime property: The exact time the namespace was last modified.

Parameters:

modifiedTime - the modifiedTime value to set.

Returns:

the NamespaceProperties object itself.

setName

public NamespaceProperties setName(String name)

Set the name property: Name of the namespace.

Parameters:

name - the name value to set.

Returns:

the NamespaceProperties object itself.

setNamespaceType

public NamespaceProperties setNamespaceType(NamespaceType namespaceType)

Set the namespaceType property: The type of entities the namespace can contain.

Parameters:

namespaceType - the namespaceType value to set.

Returns:

the NamespaceProperties object itself.

toXml

public XmlWriter toXml(XmlWriter xmlWriter)

Parameters:

xmlWriter

Throws:

toXml

public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Parameters:

xmlWriter
rootElementName

Throws:

Applies to