NetworkProfile Class

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

Implements

public final class NetworkProfile
implements JsonSerializable<NetworkProfile>

Represents the OpenShift networking configuration.

Constructor Summary

Constructor Description
NetworkProfile()

Creates an instance of NetworkProfile class.

Method Summary

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

Reads an instance of NetworkProfile from the JsonReader.

String peerVnetId()

Get the peerVnetId property: CIDR of the Vnet to peer.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String vnetCidr()

Get the vnetCidr property: CIDR for the OpenShift Vnet.

String vnetId()

Get the vnetId property: ID of the Vnet created for OSA cluster.

NetworkProfile withPeerVnetId(String peerVnetId)

Set the peerVnetId property: CIDR of the Vnet to peer.

NetworkProfile withVnetCidr(String vnetCidr)

Set the vnetCidr property: CIDR for the OpenShift Vnet.

NetworkProfile withVnetId(String vnetId)

Set the vnetId property: ID of the Vnet created for OSA cluster.

Methods inherited from java.lang.Object

Constructor Details

NetworkProfile

public NetworkProfile()

Creates an instance of NetworkProfile class.

Method Details

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.

peerVnetId

public String peerVnetId()

Get the peerVnetId property: CIDR of the Vnet to peer.

Returns:

the peerVnetId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vnetCidr

public String vnetCidr()

Get the vnetCidr property: CIDR for the OpenShift Vnet.

Returns:

the vnetCidr value.

vnetId

public String vnetId()

Get the vnetId property: ID of the Vnet created for OSA cluster.

Returns:

the vnetId value.

withPeerVnetId

public NetworkProfile withPeerVnetId(String peerVnetId)

Set the peerVnetId property: CIDR of the Vnet to peer.

Parameters:

peerVnetId - the peerVnetId value to set.

Returns:

the NetworkProfile object itself.

withVnetCidr

public NetworkProfile withVnetCidr(String vnetCidr)

Set the vnetCidr property: CIDR for the OpenShift Vnet.

Parameters:

vnetCidr - the vnetCidr value to set.

Returns:

the NetworkProfile object itself.

withVnetId

public NetworkProfile withVnetId(String vnetId)

Set the vnetId property: ID of the Vnet created for OSA cluster.

Parameters:

vnetId - the vnetId value to set.

Returns:

the NetworkProfile object itself.

Applies to