Share via


BatchPoolEndpointConfiguration Class

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

Implements

public final class BatchPoolEndpointConfiguration
implements JsonSerializable<BatchPoolEndpointConfiguration>

The endpoint configuration for a Pool.

Constructor Summary

Constructor Description
BatchPoolEndpointConfiguration(List<BatchInboundNatPool> inboundNatPools)

Creates an instance of BatchPoolEndpointConfiguration class.

Method Summary

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

Reads an instance of BatchPoolEndpointConfiguration from the JsonReader.

List<BatchInboundNatPool> 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.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

BatchPoolEndpointConfiguration

public BatchPoolEndpointConfiguration(List<BatchInboundNatPool> inboundNatPools)

Creates an instance of BatchPoolEndpointConfiguration class.

Parameters:

inboundNatPools - the inboundNatPools value to set.

Method Details

fromJson

public static BatchPoolEndpointConfiguration fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

getInboundNatPools

public List<BatchInboundNatPool> 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 JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to