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 Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkStatusContractByLocationInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkStatusContractByLocationInner from the JsonReader.location()Get the location property: Location of service.Get the networkStatus property: Network status in Location.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLocation(String location) Set the location property: Location of service.withNetworkStatus(NetworkStatusContractInner networkStatus) Set the networkStatus property: Network status in Location.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
-
NetworkStatusContractByLocationInner
public NetworkStatusContractByLocationInner()Creates an instance of NetworkStatusContractByLocationInner class.
-
-
Method Details
-
location
Get the location property: Location of service.- Returns:
- the location value.
-
withLocation
Set the location property: Location of service.- Parameters:
location- the location value to set.- Returns:
- the NetworkStatusContractByLocationInner object itself.
-
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
- Specified by:
toJsonin interfacecom.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.
-