Class SBNamespaceListResult

java.lang.Object
com.azure.resourcemanager.servicebus.models.SBNamespaceListResult
All Implemented Interfaces:
com.azure.json.JsonSerializable<SBNamespaceListResult>

public final class SBNamespaceListResult extends Object implements com.azure.json.JsonSerializable<SBNamespaceListResult>
The response of the List Namespace operation.
  • Constructor Details

    • SBNamespaceListResult

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

    • value

      public List<SBNamespaceInner> value()
      Get the value property: Result of the List Namespace operation.
      Returns:
      the value value.
    • withValue

      public SBNamespaceListResult withValue(List<SBNamespaceInner> value)
      Set the value property: Result of the List Namespace operation.
      Parameters:
      value - the value value to set.
      Returns:
      the SBNamespaceListResult object itself.
    • nextLink

      public String nextLink()
      Get the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of Namespaces.
      Returns:
      the nextLink value.
    • withNextLink

      public SBNamespaceListResult withNextLink(String nextLink)
      Set the nextLink property: Link to the next set of results. Not empty if Value contains incomplete list of Namespaces.
      Parameters:
      nextLink - the nextLink value to set.
      Returns:
      the SBNamespaceListResult object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SBNamespaceListResult>
      Throws:
      IOException
    • fromJson

      public static SBNamespaceListResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SBNamespaceListResult from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SBNamespaceListResult 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 SBNamespaceListResult.