SandboxGroupNetworkProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.SandboxGroupNetworkProfile

Implements

public final class SandboxGroupNetworkProfile
implements JsonSerializable<SandboxGroupNetworkProfile>

The network profile for a SandboxGroup.

Constructor Summary

Constructor Description
SandboxGroupNetworkProfile()

Creates an instance of SandboxGroupNetworkProfile class.

Method Summary

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

Reads an instance of SandboxGroupNetworkProfile from the JsonReader.

List<SubnetReference> subnets()

Get the subnets property: The list of subnets associated with the SandboxGroup.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SandboxGroupNetworkProfile withSubnets(List<SubnetReference> subnets)

Set the subnets property: The list of subnets associated with the SandboxGroup.

Methods inherited from java.lang.Object

Constructor Details

SandboxGroupNetworkProfile

public SandboxGroupNetworkProfile()

Creates an instance of SandboxGroupNetworkProfile class.

Method Details

fromJson

public static SandboxGroupNetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of SandboxGroupNetworkProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

subnets

public List<SubnetReference> subnets()

Get the subnets property: The list of subnets associated with the SandboxGroup.

Returns:

the subnets value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSubnets

public SandboxGroupNetworkProfile withSubnets(List<SubnetReference> subnets)

Set the subnets property: The list of subnets associated with the SandboxGroup.

Parameters:

subnets - the subnets value to set.

Returns:

the SandboxGroupNetworkProfile object itself.

Applies to