Hub Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. Hub
- com.
Implements
public final class Hub
implements JsonSerializable<Hub>
Hub Item.
Constructor Summary
Constructor | Description |
---|---|
Hub() |
Creates an instance of Hub class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static Hub |
fromJson(JsonReader jsonReader)
Reads an instance of Hub from the Json |
String |
resourceId()
Get the resource |
String |
resourceType()
Get the resource |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Hub |
withResourceId(String resourceId)
Set the resource |
Hub |
withResourceType(String resourceType)
Set the resource |
Methods inherited from java.lang.Object
Constructor Details
Hub
public Hub()
Creates an instance of Hub class.
Method Details
fromJson
public static Hub fromJson(JsonReader jsonReader)
Reads an instance of Hub from the JsonReader.
Parameters:
Returns:
Throws:
resourceId
public String resourceId()
Get the resourceId property: Resource Id.
Returns:
resourceType
public String resourceType()
Get the resourceType property: Resource Type.
Returns:
toJson
validate
public void validate()
Validates the instance.
withResourceId
public Hub withResourceId(String resourceId)
Set the resourceId property: Resource Id.
Parameters:
Returns:
withResourceType
public Hub withResourceType(String resourceType)
Set the resourceType property: Resource Type.
Parameters:
Returns:
Applies to
Azure SDK for Java