Package com.azure.compute.batch.models
Class PublicIpAddressConfiguration
java.lang.Object
com.azure.compute.batch.models.PublicIpAddressConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PublicIpAddressConfiguration>
public final class PublicIpAddressConfiguration
extends Object
implements com.azure.json.JsonSerializable<PublicIpAddressConfiguration>
The public IP Address configuration of the networking configuration of a Pool.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PublicIpAddressConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PublicIpAddressConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PublicIpAddressConfiguration from the JsonReader.Get the ipAddressIds property: The list of public IPs which the Batch service will use when provisioning Compute Nodes.Get the ipAddressProvisioningType property: The provisioning type for Public IP Addresses for the Pool.setIpAddressIds(List<String> ipAddressIds) Set the ipAddressIds property: The list of public IPs which the Batch service will use when provisioning Compute Nodes.setIpAddressProvisioningType(IpAddressProvisioningType ipAddressProvisioningType) Set the ipAddressProvisioningType property: The provisioning type for Public IP Addresses for the Pool.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PublicIpAddressConfiguration
public PublicIpAddressConfiguration()Creates an instance of PublicIpAddressConfiguration class.
-
-
Method Details
-
getIpAddressProvisioningType
Get the ipAddressProvisioningType property: The provisioning type for Public IP Addresses for the Pool. The default value is BatchManaged.- Returns:
- the ipAddressProvisioningType value.
-
setIpAddressProvisioningType
public PublicIpAddressConfiguration 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 PublicIpAddressConfiguration object itself.
-
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.
-
setIpAddressIds
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 PublicIpAddressConfiguration object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PublicIpAddressConfiguration>- Throws:
IOException
-
fromJson
public static PublicIpAddressConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PublicIpAddressConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PublicIpAddressConfiguration 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 PublicIpAddressConfiguration.
-