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 Details

    • NamespaceProperties

      public NamespaceProperties()
      Creates an instance of NamespaceProperties class.
  • Method Details

    • getAlias

      public String getAlias()
      Get the alias property: Alias for the geo-disaster recovery Service Bus namespace.
      Returns:
      the alias 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.
    • 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.
    • 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.
    • getMessagingUnits

      public Integer getMessagingUnits()
      Get the messagingUnits property: The number of messaging units allocated to the namespace.
      Returns:
      the messagingUnits value.
    • 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.
    • getModifiedTime

      public OffsetDateTime getModifiedTime()
      Get the modifiedTime property: The exact time the namespace was last modified.
      Returns:
      the modifiedTime value.
    • 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.
    • getName

      public String getName()
      Get the name property: Name of the namespace.
      Returns:
      the name value.
    • 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.
    • getNamespaceType

      public NamespaceType getNamespaceType()
      Get the namespaceType property: The type of entities the namespace can contain.
      Returns:
      the namespaceType value.
    • 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 com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter) throws XMLStreamException
      Specified by:
      toXml in interface com.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 interface com.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.