Partilhar via


Subnet Class

  • java.lang.Object
    • com.azure.resourcemanager.servicebus.models.Subnet

Implements

public final class Subnet
implements JsonSerializable<Subnet>

Properties supplied for Subnet.

Constructor Summary

Constructor Description
Subnet()

Creates an instance of Subnet class.

Method Summary

Modifier and Type Method and Description
static Subnet fromJson(JsonReader jsonReader)

Reads an instance of Subnet from the JsonReader.

String id()

Get the id property: Resource ID of Virtual Network Subnet.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Subnet withId(String id)

Set the id property: Resource ID of Virtual Network Subnet.

Methods inherited from java.lang.Object

Constructor Details

Subnet

public Subnet()

Creates an instance of Subnet class.

Method Details

fromJson

public static Subnet fromJson(JsonReader jsonReader)

Reads an instance of Subnet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Subnet if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Resource ID of Virtual Network Subnet.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public Subnet withId(String id)

Set the id property: Resource ID of Virtual Network Subnet.

Parameters:

id - the id value to set.

Returns:

the Subnet object itself.

Applies to