Package com.azure.compute.batch.models
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 Summary
ConstructorsConstructorDescriptionBatchPoolEndpointConfiguration
(List<InboundNatPool> inboundNatPools) Creates an instance of BatchPoolEndpointConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchPoolEndpointConfiguration from the JsonReader.Get the inboundNatPools property: A list of inbound NAT Pools that can be used to address specific ports on an individual Compute Node externally.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BatchPoolEndpointConfiguration
Creates an instance of BatchPoolEndpointConfiguration class.- Parameters:
inboundNatPools
- the inboundNatPools value to set.
-
-
Method Details
-
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
- Specified by:
toJson
in interfacecom.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.
-