Class EndpointAccessProfile
java.lang.Object
com.azure.resourcemanager.batch.models.EndpointAccessProfile
Network access profile for Batch endpoint.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the defaultAction property: The default action when there is no IPRule matched.ipRules()
Get the ipRules property: Array of IP ranges to filter client IP address.void
validate()
Validates the instance.withDefaultAction
(EndpointAccessDefaultAction defaultAction) Set the defaultAction property: The default action when there is no IPRule matched.withIpRules
(List<IpRule> ipRules) Set the ipRules property: Array of IP ranges to filter client IP address.
-
Constructor Details
-
EndpointAccessProfile
public EndpointAccessProfile()Creates an instance of EndpointAccessProfile class.
-
-
Method Details
-
defaultAction
Get the defaultAction property: The default action when there is no IPRule matched.Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled.
- Returns:
- the defaultAction value.
-
withDefaultAction
Set the defaultAction property: The default action when there is no IPRule matched.Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled.
- Parameters:
defaultAction
- the defaultAction value to set.- Returns:
- the EndpointAccessProfile object itself.
-
ipRules
Get the ipRules property: Array of IP ranges to filter client IP address.- Returns:
- the ipRules value.
-
withIpRules
Set the ipRules property: Array of IP ranges to filter client IP address.- Parameters:
ipRules
- the ipRules value to set.- Returns:
- the EndpointAccessProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-