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 Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkStatusContractInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connectivityStatus property: Gets the list of Connectivity Status to the Resources on which the service depends upon.Get the dnsServers property: Gets the list of DNS servers IPV4 addresses.static NetworkStatusContractInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkStatusContractInner from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withConnectivityStatus(List<ConnectivityStatusContract> connectivityStatus) Set the connectivityStatus property: Gets the list of Connectivity Status to the Resources on which the service depends upon.withDnsServers(List<String> dnsServers) Set the dnsServers property: Gets the list of DNS servers IPV4 addresses.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NetworkStatusContractInner
public NetworkStatusContractInner()Creates an instance of NetworkStatusContractInner class.
-
-
Method Details
-
dnsServers
Get the dnsServers property: Gets the list of DNS servers IPV4 addresses.- Returns:
- the dnsServers value.
-
withDnsServers
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
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
- Specified by:
toJsonin interfacecom.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.
-