NetworkProfile Class

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

Implements

public final class NetworkProfile
implements JsonSerializable<NetworkProfile>

A network profile for network settings of a ContainerGroupProfile. Used to manage load balancer and application gateway backend pools, specifically updating the IP addresses of CGs within the backend pool.

Constructor Summary

Constructor Description
NetworkProfile()

Creates an instance of NetworkProfile class.

Method Summary

Modifier and Type Method and Description
ApplicationGateway applicationGateway()

Get the applicationGateway property: Application Gateway the CG profile will use to interact with CGs in a backend pool.

static NetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of NetworkProfile from the JsonReader.

LoadBalancer loadBalancer()

Get the loadBalancer property: LoadBalancer the CG profile will use to interact with CGs in a backend pool.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkProfile withApplicationGateway(ApplicationGateway applicationGateway)

Set the applicationGateway property: Application Gateway the CG profile will use to interact with CGs in a backend pool.

NetworkProfile withLoadBalancer(LoadBalancer loadBalancer)

Set the loadBalancer property: LoadBalancer the CG profile will use to interact with CGs in a backend pool.

Methods inherited from java.lang.Object

Constructor Details

NetworkProfile

public NetworkProfile()

Creates an instance of NetworkProfile class.

Method Details

applicationGateway

public ApplicationGateway applicationGateway()

Get the applicationGateway property: Application Gateway the CG profile will use to interact with CGs in a backend pool.

Returns:

the applicationGateway value.

fromJson

public static NetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of NetworkProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

loadBalancer

public LoadBalancer loadBalancer()

Get the loadBalancer property: LoadBalancer the CG profile will use to interact with CGs in a backend pool.

Returns:

the loadBalancer value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withApplicationGateway

public NetworkProfile withApplicationGateway(ApplicationGateway applicationGateway)

Set the applicationGateway property: Application Gateway the CG profile will use to interact with CGs in a backend pool.

Parameters:

applicationGateway - the applicationGateway value to set.

Returns:

the NetworkProfile object itself.

withLoadBalancer

public NetworkProfile withLoadBalancer(LoadBalancer loadBalancer)

Set the loadBalancer property: LoadBalancer the CG profile will use to interact with CGs in a backend pool.

Parameters:

loadBalancer - the loadBalancer value to set.

Returns:

the NetworkProfile object itself.

Applies to