Class NetworkStatusContractByLocationInner

java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.NetworkStatusContractByLocationInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkStatusContractByLocationInner>

public final class NetworkStatusContractByLocationInner extends Object implements com.azure.json.JsonSerializable<NetworkStatusContractByLocationInner>
Network Status in the Location.
  • Constructor Details

    • NetworkStatusContractByLocationInner

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

    • location

      public String location()
      Get the location property: Location of service.
      Returns:
      the location value.
    • withLocation

      public NetworkStatusContractByLocationInner withLocation(String location)
      Set the location property: Location of service.
      Parameters:
      location - the location value to set.
      Returns:
      the NetworkStatusContractByLocationInner object itself.
    • networkStatus

      public NetworkStatusContractInner networkStatus()
      Get the networkStatus property: Network status in Location.
      Returns:
      the networkStatus value.
    • withNetworkStatus

      public NetworkStatusContractByLocationInner withNetworkStatus(NetworkStatusContractInner networkStatus)
      Set the networkStatus property: Network status in Location.
      Parameters:
      networkStatus - the networkStatus value to set.
      Returns:
      the NetworkStatusContractByLocationInner 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<NetworkStatusContractByLocationInner>
      Throws:
      IOException
    • fromJson

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