Share via


PoolEndpointConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.PoolEndpointConfiguration

Implements

public final class PoolEndpointConfiguration
implements JsonSerializable<PoolEndpointConfiguration>

The endpoint configuration for a pool.

Constructor Summary

Constructor Description
PoolEndpointConfiguration()

Creates an instance of PoolEndpointConfiguration class.

Method Summary

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

Reads an instance of PoolEndpointConfiguration from the JsonReader.

List<InboundNatPool> inboundNatPools()

Get the inboundNatPools property: The maximum number of inbound NAT pools per Batch pool is 5.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PoolEndpointConfiguration withInboundNatPools(List<InboundNatPool> inboundNatPools)

Set the inboundNatPools property: The maximum number of inbound NAT pools per Batch pool is 5.

Methods inherited from java.lang.Object

Constructor Details

PoolEndpointConfiguration

public PoolEndpointConfiguration()

Creates an instance of PoolEndpointConfiguration class.

Method Details

fromJson

public static PoolEndpointConfiguration fromJson(JsonReader jsonReader)

Reads an instance of PoolEndpointConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

inboundNatPools

public List<InboundNatPool> inboundNatPools()

Get the inboundNatPools property: 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:

validate

public void validate()

Validates the instance.

withInboundNatPools

public PoolEndpointConfiguration withInboundNatPools(List<InboundNatPool> inboundNatPools)

Set the inboundNatPools property: 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.

Parameters:

inboundNatPools - the inboundNatPools value to set.

Returns:

the PoolEndpointConfiguration object itself.

Applies to