Class InboundNatPool
java.lang.Object
com.microsoft.azure.management.batch.InboundNatPool
A inbound NAT pool that can be used to address specific ports on compute
nodes in a Batch pool externally.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get this must be unique within a Batch pool.int
Get acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service.int
Get acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved.name()
Get the name must be unique within a Batch pool, can contain letters, numbers, underscores, periods, and hyphens.Get the maximum number of rules that can be specified across all the endpoints on a Batch pool is 25.protocol()
Get possible values include: 'TCP', 'UDP'.withBackendPort
(int backendPort) Set this must be unique within a Batch pool.withFrontendPortRangeEnd
(int frontendPortRangeEnd) Set acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service.withFrontendPortRangeStart
(int frontendPortRangeStart) Set acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved.Set the name must be unique within a Batch pool, can contain letters, numbers, underscores, periods, and hyphens.withNetworkSecurityGroupRules
(List<NetworkSecurityGroupRule> networkSecurityGroupRules) Set the maximum number of rules that can be specified across all the endpoints on a Batch pool is 25.withProtocol
(InboundEndpointProtocol protocol) Set possible values include: 'TCP', 'UDP'.
-
Constructor Details
-
InboundNatPool
public InboundNatPool()
-
-
Method Details
-
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:
- the name value
-
withName
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:
name
- the name value to set- Returns:
- the InboundNatPool object itself.
-
protocol
Get possible values include: 'TCP', 'UDP'.- Returns:
- the protocol value
-
withProtocol
Set possible values include: 'TCP', 'UDP'.- Parameters:
protocol
- the protocol value to set- Returns:
- the InboundNatPool object itself.
-
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:
- the backendPort value
-
withBackendPort
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:
backendPort
- the backendPort value to set- Returns:
- the InboundNatPool object itself.
-
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. If any reserved or overlapping values are provided the request fails with HTTP status code 400.- Returns:
- the frontendPortRangeStart value
-
withFrontendPortRangeStart
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. If any reserved or overlapping values are provided the request fails with HTTP status code 400.- Parameters:
frontendPortRangeStart
- the frontendPortRangeStart value to set- Returns:
- the InboundNatPool object itself.
-
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. If any reserved or overlapping values are provided the request fails with HTTP status code 400.- Returns:
- the frontendPortRangeEnd value
-
withFrontendPortRangeEnd
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. If any reserved or overlapping values are provided the request fails with HTTP status code 400.- Parameters:
frontendPortRangeEnd
- the frontendPortRangeEnd value to set- Returns:
- the InboundNatPool object itself.
-
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.- Returns:
- the networkSecurityGroupRules value
-
withNetworkSecurityGroupRules
public InboundNatPool 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.- Parameters:
networkSecurityGroupRules
- the networkSecurityGroupRules value to set- Returns:
- the InboundNatPool object itself.
-