Class BatchPoolEndpointConfiguration

java.lang.Object
com.azure.compute.batch.models.BatchPoolEndpointConfiguration
All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchPoolEndpointConfiguration>

public final class BatchPoolEndpointConfiguration extends Object implements com.azure.json.JsonSerializable<BatchPoolEndpointConfiguration>
The endpoint configuration for a Pool.
  • Constructor Details

    • BatchPoolEndpointConfiguration

      public BatchPoolEndpointConfiguration(List<InboundNatPool> inboundNatPools)
      Creates an instance of BatchPoolEndpointConfiguration class.
      Parameters:
      inboundNatPools - the inboundNatPools value to set.
  • Method Details

    • getInboundNatPools

      public List<InboundNatPool> getInboundNatPools()
      Get the inboundNatPools property: A list of inbound NAT Pools that can be used to address specific ports on an individual Compute Node externally. The maximum number of inbound NAT Pools per Batch Pool is 5. If the maximum number of inbound NAT Pools is exceeded the request fails with HTTP status code 400. This cannot be specified if the IPAddressProvisioningType is NoPublicIPAddresses.
      Returns:
      the inboundNatPools value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchPoolEndpointConfiguration>
      Throws:
      IOException
    • fromJson

      public static BatchPoolEndpointConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BatchPoolEndpointConfiguration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BatchPoolEndpointConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the BatchPoolEndpointConfiguration.