Class Hub
java.lang.Object
com.azure.resourcemanager.network.models.Hub
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Hub>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HubfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Hub from the JsonReader.Get the resourceId property: Resource Id.Get the resourceType property: Resource Type.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withResourceId(String resourceId) Set the resourceId property: Resource Id.withResourceType(String resourceType) Set the resourceType property: Resource Type.Methods inherited from class 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
-
Hub
public Hub()Creates an instance of Hub class.
-
-
Method Details
-
resourceId
-
withResourceId
-
resourceType
Get the resourceType property: Resource Type.- Returns:
- the resourceType value.
-
withResourceType
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Hub>- Throws:
IOException
-
fromJson
Reads an instance of Hub from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Hub 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 Hub.
-