Class NamespaceProperties
java.lang.Object
com.azure.messaging.servicebus.administration.models.NamespaceProperties
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<NamespaceProperties>
public final class NamespaceProperties
extends Object
implements com.azure.xml.XmlSerializable<NamespaceProperties>
The metadata related to a Service Bus namespace.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NamespaceProperties
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of NamespaceProperties from the XmlReader.static NamespaceProperties
Reads an instance of NamespaceProperties from the XmlReader.getAlias()
Get the alias property: Alias for the geo-disaster recovery Service Bus namespace.Get the createdTime property: The exact time the namespace was created.Get the messagingSku property: The SKU for the messaging entity.Get the messagingUnits property: The number of messaging units allocated to the namespace.Get the modifiedTime property: The exact time the namespace was last modified.getName()
Get the name property: Name of the namespace.Get the namespaceType property: The type of entities the namespace can contain.Set the alias property: Alias for the geo-disaster recovery Service Bus namespace.setMessagingSku
(MessagingSku messagingSku) Set the messagingSku property: The SKU for the messaging entity.setMessagingUnits
(Integer messagingUnits) Set the messagingUnits property: The number of messaging units allocated to the namespace.setModifiedTime
(OffsetDateTime modifiedTime) Set the modifiedTime property: The exact time the namespace was last modified.Set the name property: Name of the namespace.setNamespaceType
(NamespaceType namespaceType) Set the namespaceType property: The type of entities the namespace can contain.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
NamespaceProperties
public NamespaceProperties()Creates an instance of NamespaceProperties class.
-
-
Method Details
-
getAlias
Get the alias property: Alias for the geo-disaster recovery Service Bus namespace.- Returns:
- the alias value.
-
setAlias
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.
-
getCreatedTime
Get the createdTime property: The exact time the namespace was created.- Returns:
- the createdTime value.
-
getMessagingSku
Get the messagingSku property: The SKU for the messaging entity.- Returns:
- the messagingSku value.
-
setMessagingSku
Set the messagingSku property: The SKU for the messaging entity.- Parameters:
messagingSku
- the messagingSku value to set.- Returns:
- the NamespaceProperties object itself.
-
getMessagingUnits
Get the messagingUnits property: The number of messaging units allocated to the namespace.- Returns:
- the messagingUnits value.
-
setMessagingUnits
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.
-
getModifiedTime
Get the modifiedTime property: The exact time the namespace was last modified.- Returns:
- the modifiedTime value.
-
setModifiedTime
Set the modifiedTime property: The exact time the namespace was last modified.- Parameters:
modifiedTime
- the modifiedTime value to set.- Returns:
- the NamespaceProperties object itself.
-
getName
Get the name property: Name of the namespace.- Returns:
- the name value.
-
setName
Set the name property: Name of the namespace.- Parameters:
name
- the name value to set.- Returns:
- the NamespaceProperties object itself.
-
getNamespaceType
Get the namespaceType property: The type of entities the namespace can contain.- Returns:
- the namespaceType value.
-
setNamespaceType
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
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<NamespaceProperties>
- Throws:
XMLStreamException
-
toXml
public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException - Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<NamespaceProperties>
- Throws:
XMLStreamException
-
fromXml
public static NamespaceProperties fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException 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(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException 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.
-