InboundNATPool Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. InboundNATPool
- com.
public class InboundNATPool
A inbound NAT pool that can be used to address specific ports on compute nodes in a Batch pool externally.
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
backendPort()
Get this must be unique within a Batch pool. Acceptable values are between 1 and 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any reserved values are provided the request fails with HTTP status code 400. |
int |
frontendPortRangeEnd()
Get acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service. All ranges within a pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400. |
int |
frontendPortRangeStart()
Get acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within a pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400. |
String |
name()
Get the name must be unique within a Batch pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400. |
List<Network |
networkSecurityGroupRules()
Get the maximum number of rules that can be specified across all the endpoints on a Batch pool is 25. If no network security group rules are specified, a default rule will be created to allow inbound access to the specified backendPort. If the maximum number of network security group rules is exceeded the request fails with HTTP status code 400. |
Inbound |
protocol()
Get possible values include: 'tcp', 'udp'. |
Inbound |
withBackendPort(int backendPort)
Set this must be unique within a Batch pool. Acceptable values are between 1 and 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any reserved values are provided the request fails with HTTP status code 400. |
Inbound |
withFrontendPortRangeEnd(int frontendPortRangeEnd)
Set acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service. All ranges within a pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400. |
Inbound |
withFrontendPortRangeStart(int frontendPortRangeStart)
Set acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within a pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400. |
Inbound |
withName(String name)
Set the name must be unique within a Batch pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400. |
Inbound |
withNetworkSecurityGroupRules(List<NetworkSecurityGroupRule> networkSecurityGroupRules)
Set the maximum number of rules that can be specified across all the endpoints on a Batch pool is 25. If no network security group rules are specified, a default rule will be created to allow inbound access to the specified backendPort. If the maximum number of network security group rules is exceeded the request fails with HTTP status code 400. |
Inbound |
withProtocol(InboundEndpointProtocol protocol)
Set possible values include: 'tcp', 'udp'. |
Method Details
backendPort
public int backendPort()
Get this must be unique within a Batch pool. Acceptable values are between 1 and 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any reserved values are provided the request fails with HTTP status code 400.
Returns:
frontendPortRangeEnd
public int frontendPortRangeEnd()
Get acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service. All ranges within a pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400.
Returns:
frontendPortRangeStart
public int frontendPortRangeStart()
Get acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within a pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400.
Returns:
name
public String name()
Get the name must be unique within a Batch pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400.
Returns:
networkSecurityGroupRules
public List
Get the maximum number of rules that can be specified across all the endpoints on a Batch pool is 25. If no network security group rules are specified, a default rule will be created to allow inbound access to the specified backendPort. If the maximum number of network security group rules is exceeded the request fails with HTTP status code 400.
Returns:
protocol
public InboundEndpointProtocol protocol()
Get possible values include: 'tcp', 'udp'.
Returns:
withBackendPort
public InboundNATPool withBackendPort(int backendPort)
Set this must be unique within a Batch pool. Acceptable values are between 1 and 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any reserved values are provided the request fails with HTTP status code 400.
Parameters:
Returns:
withFrontendPortRangeEnd
public InboundNATPool withFrontendPortRangeEnd(int frontendPortRangeEnd)
Set acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service. All ranges within a pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400.
Parameters:
Returns:
withFrontendPortRangeStart
public InboundNATPool withFrontendPortRangeStart(int frontendPortRangeStart)
Set acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within a pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400.
Parameters:
Returns:
withName
public InboundNATPool withName(String name)
Set the name must be unique within a Batch pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400.
Parameters:
Returns:
withNetworkSecurityGroupRules
public InboundNATPool withNetworkSecurityGroupRules(List
Set the maximum number of rules that can be specified across all the endpoints on a Batch pool is 25. If no network security group rules are specified, a default rule will be created to allow inbound access to the specified backendPort. If the maximum number of network security group rules is exceeded the request fails with HTTP status code 400.
Parameters:
Returns:
withProtocol
public InboundNATPool withProtocol(InboundEndpointProtocol protocol)
Set possible values include: 'tcp', 'udp'.
Parameters:
Returns:
Applies to
Azure SDK for Java