Class NetworkStatusContractInner

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

public final class NetworkStatusContractInner extends Object implements com.azure.json.JsonSerializable<NetworkStatusContractInner>
Network Status details.
  • Constructor Details

    • NetworkStatusContractInner

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

    • dnsServers

      public List<String> dnsServers()
      Get the dnsServers property: Gets the list of DNS servers IPV4 addresses.
      Returns:
      the dnsServers value.
    • withDnsServers

      public NetworkStatusContractInner withDnsServers(List<String> dnsServers)
      Set the dnsServers property: Gets the list of DNS servers IPV4 addresses.
      Parameters:
      dnsServers - the dnsServers value to set.
      Returns:
      the NetworkStatusContractInner object itself.
    • connectivityStatus

      public List<ConnectivityStatusContract> connectivityStatus()
      Get the connectivityStatus property: Gets the list of Connectivity Status to the Resources on which the service depends upon.
      Returns:
      the connectivityStatus value.
    • withConnectivityStatus

      public NetworkStatusContractInner withConnectivityStatus(List<ConnectivityStatusContract> connectivityStatus)
      Set the connectivityStatus property: Gets the list of Connectivity Status to the Resources on which the service depends upon.
      Parameters:
      connectivityStatus - the connectivityStatus value to set.
      Returns:
      the NetworkStatusContractInner 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<NetworkStatusContractInner>
      Throws:
      IOException
    • fromJson

      public static NetworkStatusContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NetworkStatusContractInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NetworkStatusContractInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the NetworkStatusContractInner.