Compartir a través de


ResourceBasics Class

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

Implements

public final class ResourceBasics
implements JsonSerializable<ResourceBasics>

Representation of basic resource information.

Constructor Summary

Constructor Description
ResourceBasics()

Creates an instance of ResourceBasics class.

Method Summary

Modifier and Type Method and Description
List<String> addressPrefixes()

Get the addressPrefixes property: List of IP address prefixes of the resource.

static ResourceBasics fromJson(JsonReader jsonReader)

Reads an instance of ResourceBasics from the JsonReader.

String resourceId()

Get the resourceId property: ResourceId of the Azure resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceBasics withAddressPrefixes(List<String> addressPrefixes)

Set the addressPrefixes property: List of IP address prefixes of the resource.

ResourceBasics withResourceId(String resourceId)

Set the resourceId property: ResourceId of the Azure resource.

Methods inherited from java.lang.Object

Constructor Details

ResourceBasics

public ResourceBasics()

Creates an instance of ResourceBasics class.

Method Details

addressPrefixes

public List addressPrefixes()

Get the addressPrefixes property: List of IP address prefixes of the resource.

Returns:

the addressPrefixes value.

fromJson

public static ResourceBasics fromJson(JsonReader jsonReader)

Reads an instance of ResourceBasics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceBasics 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 ResourceBasics.

resourceId

public String resourceId()

Get the resourceId property: ResourceId of the Azure resource.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAddressPrefixes

public ResourceBasics withAddressPrefixes(List addressPrefixes)

Set the addressPrefixes property: List of IP address prefixes of the resource.

Parameters:

addressPrefixes - the addressPrefixes value to set.

Returns:

the ResourceBasics object itself.

withResourceId

public ResourceBasics withResourceId(String resourceId)

Set the resourceId property: ResourceId of the Azure resource.

Parameters:

resourceId - the resourceId value to set.

Returns:

the ResourceBasics object itself.

Applies to