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 Details

    • PublicIpAddressConfiguration

      public PublicIpAddressConfiguration()
      Creates an instance of PublicIpAddressConfiguration class.
  • Method Details

    • 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.
    • 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

      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.
    • setIpAddressIds

      public PublicIpAddressConfiguration 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 PublicIpAddressConfiguration object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.