Share via


BatchPublicIpAddressConfiguration Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchPublicIpAddressConfiguration

Implements

public final class BatchPublicIpAddressConfiguration
implements JsonSerializable<BatchPublicIpAddressConfiguration>

The public IP Address configuration of the networking configuration of a Pool.

Constructor Summary

Constructor Description
BatchPublicIpAddressConfiguration()

Creates an instance of BatchPublicIpAddressConfiguration class.

Method Summary

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

Reads an instance of BatchPublicIpAddressConfiguration from the JsonReader.

List<String> getIpAddressIds()

Get the ipAddressIds property: The list of public IPs which the Batch service will use when provisioning Compute Nodes.

IpAddressProvisioningType getIpAddressProvisioningType()

Get the ipAddressProvisioningType property: The provisioning type for Public IP Addresses for the Pool.

BatchPublicIpAddressConfiguration setIpAddressIds(List<String> ipAddressIds)

Set the ipAddressIds property: The list of public IPs which the Batch service will use when provisioning Compute Nodes.

BatchPublicIpAddressConfiguration setIpAddressProvisioningType(IpAddressProvisioningType ipAddressProvisioningType)

Set the ipAddressProvisioningType property: The provisioning type for Public IP Addresses for the Pool.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

BatchPublicIpAddressConfiguration

public BatchPublicIpAddressConfiguration()

Creates an instance of BatchPublicIpAddressConfiguration class.

Method Details

fromJson

public static BatchPublicIpAddressConfiguration fromJson(JsonReader jsonReader)

Reads an instance of BatchPublicIpAddressConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getIpAddressIds

public List<String> getIpAddressIds()

Get the ipAddressIds property: The list of public IPs which the Batch service will use when provisioning Compute Nodes. The number of IPs specified here limits the maximum size of the Pool - 100 dedicated nodes or 100 Spot/Low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each element of this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.

Returns:

the ipAddressIds value.

getIpAddressProvisioningType

public IpAddressProvisioningType getIpAddressProvisioningType()

Get the ipAddressProvisioningType property: The provisioning type for Public IP Addresses for the Pool. The default value is BatchManaged.

Returns:

the ipAddressProvisioningType value.

setIpAddressIds

public BatchPublicIpAddressConfiguration setIpAddressIds(List<String> ipAddressIds)

Set the ipAddressIds property: The list of public IPs which the Batch service will use when provisioning Compute Nodes. The number of IPs specified here limits the maximum size of the Pool - 100 dedicated nodes or 100 Spot/Low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each element of this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.

Parameters:

ipAddressIds - the ipAddressIds value to set.

Returns:

the BatchPublicIpAddressConfiguration object itself.

setIpAddressProvisioningType

public BatchPublicIpAddressConfiguration setIpAddressProvisioningType(IpAddressProvisioningType ipAddressProvisioningType)

Set the ipAddressProvisioningType property: The provisioning type for Public IP Addresses for the Pool. The default value is BatchManaged.

Parameters:

ipAddressProvisioningType - the ipAddressProvisioningType value to set.

Returns:

the BatchPublicIpAddressConfiguration object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to