Class EndpointAccessProfile

java.lang.Object
com.azure.resourcemanager.batch.models.EndpointAccessProfile

public final class EndpointAccessProfile extends Object
Network access profile for Batch endpoint.
  • Constructor Details

    • EndpointAccessProfile

      public EndpointAccessProfile()
      Creates an instance of EndpointAccessProfile class.
  • Method Details

    • defaultAction

      public EndpointAccessDefaultAction 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

      public EndpointAccessProfile withDefaultAction(EndpointAccessDefaultAction defaultAction)
      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

      public List<IpRule> ipRules()
      Get the ipRules property: Array of IP ranges to filter client IP address.
      Returns:
      the ipRules value.
    • withIpRules

      public EndpointAccessProfile withIpRules(List<IpRule> ipRules)
      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.