Partager via


RoleInstancePropertiesInner Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.fluent.models.RoleInstancePropertiesInner

Implements

public final class RoleInstancePropertiesInner
implements JsonSerializable<RoleInstancePropertiesInner>

Role instance properties.

Constructor Summary

Constructor Description
RoleInstancePropertiesInner()

Creates an instance of RoleInstancePropertiesInner class.

Method Summary

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

Reads an instance of RoleInstancePropertiesInner from the JsonReader.

RoleInstanceViewInner instanceView()

Get the instanceView property: The instance view of the role instance.

RoleInstanceNetworkProfile networkProfile()

Get the networkProfile property: Describes the network profile for the role instance.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RoleInstancePropertiesInner withInstanceView(RoleInstanceViewInner instanceView)

Set the instanceView property: The instance view of the role instance.

RoleInstancePropertiesInner withNetworkProfile(RoleInstanceNetworkProfile networkProfile)

Set the networkProfile property: Describes the network profile for the role instance.

Methods inherited from java.lang.Object

Constructor Details

RoleInstancePropertiesInner

public RoleInstancePropertiesInner()

Creates an instance of RoleInstancePropertiesInner class.

Method Details

fromJson

public static RoleInstancePropertiesInner fromJson(JsonReader jsonReader)

Reads an instance of RoleInstancePropertiesInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

instanceView

public RoleInstanceViewInner instanceView()

Get the instanceView property: The instance view of the role instance.

Returns:

the instanceView value.

networkProfile

public RoleInstanceNetworkProfile networkProfile()

Get the networkProfile property: Describes the network profile for the role instance.

Returns:

the networkProfile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withInstanceView

public RoleInstancePropertiesInner withInstanceView(RoleInstanceViewInner instanceView)

Set the instanceView property: The instance view of the role instance.

Parameters:

instanceView - the instanceView value to set.

Returns:

the RoleInstancePropertiesInner object itself.

withNetworkProfile

public RoleInstancePropertiesInner withNetworkProfile(RoleInstanceNetworkProfile networkProfile)

Set the networkProfile property: Describes the network profile for the role instance.

Parameters:

networkProfile - the networkProfile value to set.

Returns:

the RoleInstancePropertiesInner object itself.

Applies to