通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RoleInstanceNetworkProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.RoleInstanceNetworkProfile

Implements

public final class RoleInstanceNetworkProfile
implements JsonSerializable<RoleInstanceNetworkProfile>

Describes the network profile for the role instance.

Constructor Summary

Constructor Description
RoleInstanceNetworkProfile()

Creates an instance of RoleInstanceNetworkProfile class.

Method Summary

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

Reads an instance of RoleInstanceNetworkProfile from the JsonReader.

List<SubResource> networkInterfaces()

Get the networkInterfaces property: Specifies the list of resource Ids for the network interfaces associated with the role instance.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

RoleInstanceNetworkProfile

public RoleInstanceNetworkProfile()

Creates an instance of RoleInstanceNetworkProfile class.

Method Details

fromJson

public static RoleInstanceNetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of RoleInstanceNetworkProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

networkInterfaces

public List<SubResource> networkInterfaces()

Get the networkInterfaces property: Specifies the list of resource Ids for the network interfaces associated with the role instance.

Returns:

the networkInterfaces value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to