Hub Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.Hub

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 JsonReader.

String resourceId()

Get the resourceId property: Resource Id.

String resourceType()

Get the resourceType property: Resource Type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Hub withResourceId(String resourceId)

Set the resourceId property: Resource Id.

Hub withResourceType(String resourceType)

Set the resourceType property: Resource Type.

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:

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.

resourceId

public String resourceId()

Get the resourceId property: Resource Id.

Returns:

the resourceId value.

resourceType

public String resourceType()

Get the resourceType property: Resource Type.

Returns:

the resourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResourceId

public Hub withResourceId(String resourceId)

Set the resourceId property: Resource Id.

Parameters:

resourceId - the resourceId value to set.

Returns:

the Hub object itself.

withResourceType

public Hub withResourceType(String resourceType)

Set the resourceType property: Resource Type.

Parameters:

resourceType - the resourceType value to set.

Returns:

the Hub object itself.

Applies to