Class BehaviorApi

java.lang.Object
com.okta.sdk.resource.api.BehaviorApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]", comments="Generator version: 7.15.0") public class BehaviorApi extends Object
  • Constructor Details

    • BehaviorApi

      public BehaviorApi()
    • BehaviorApi

      public BehaviorApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • activateBehaviorDetectionRule

      public BehaviorRule activateBehaviorDetectionRule(String behaviorId) throws ApiException
      Activate a behavior detection rule Activates a behavior detection rule
      Parameters:
      behaviorId - ID of the Behavior Detection Rule (required)
      Returns:
      BehaviorRule
      Throws:
      ApiException - if fails to make API call
    • activateBehaviorDetectionRule

      public BehaviorRule activateBehaviorDetectionRule(String behaviorId, Map<String,String> additionalHeaders) throws ApiException
      Activate a behavior detection rule Activates a behavior detection rule
      Parameters:
      behaviorId - ID of the Behavior Detection Rule (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      BehaviorRule
      Throws:
      ApiException - if fails to make API call
    • createBehaviorDetectionRule

      public BehaviorRule createBehaviorDetectionRule(BehaviorRule rule) throws ApiException
      Create a behavior detection rule Creates a new behavior detection rule
      Parameters:
      rule - (required)
      Returns:
      BehaviorRule
      Throws:
      ApiException - if fails to make API call
    • createBehaviorDetectionRule

      public BehaviorRule createBehaviorDetectionRule(BehaviorRule rule, Map<String,String> additionalHeaders) throws ApiException
      Create a behavior detection rule Creates a new behavior detection rule
      Parameters:
      rule - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      BehaviorRule
      Throws:
      ApiException - if fails to make API call
    • deactivateBehaviorDetectionRule

      public BehaviorRule deactivateBehaviorDetectionRule(String behaviorId) throws ApiException
      Deactivate a behavior detection rule Deactivates a behavior detection rule
      Parameters:
      behaviorId - ID of the Behavior Detection Rule (required)
      Returns:
      BehaviorRule
      Throws:
      ApiException - if fails to make API call
    • deactivateBehaviorDetectionRule

      public BehaviorRule deactivateBehaviorDetectionRule(String behaviorId, Map<String,String> additionalHeaders) throws ApiException
      Deactivate a behavior detection rule Deactivates a behavior detection rule
      Parameters:
      behaviorId - ID of the Behavior Detection Rule (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      BehaviorRule
      Throws:
      ApiException - if fails to make API call
    • deleteBehaviorDetectionRule

      public void deleteBehaviorDetectionRule(String behaviorId) throws ApiException
      Delete a behavior detection rule Deletes a Behavior Detection Rule by `behaviorId`
      Parameters:
      behaviorId - ID of the Behavior Detection Rule (required)
      Throws:
      ApiException - if fails to make API call
    • deleteBehaviorDetectionRule

      public void deleteBehaviorDetectionRule(String behaviorId, Map<String,String> additionalHeaders) throws ApiException
      Delete a behavior detection rule Deletes a Behavior Detection Rule by `behaviorId`
      Parameters:
      behaviorId - ID of the Behavior Detection Rule (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getBehaviorDetectionRule

      public BehaviorRule getBehaviorDetectionRule(String behaviorId) throws ApiException
      Retrieve a behavior detection rule Retrieves a Behavior Detection Rule by `behaviorId`
      Parameters:
      behaviorId - ID of the Behavior Detection Rule (required)
      Returns:
      BehaviorRule
      Throws:
      ApiException - if fails to make API call
    • getBehaviorDetectionRule

      public BehaviorRule getBehaviorDetectionRule(String behaviorId, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a behavior detection rule Retrieves a Behavior Detection Rule by `behaviorId`
      Parameters:
      behaviorId - ID of the Behavior Detection Rule (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      BehaviorRule
      Throws:
      ApiException - if fails to make API call
    • listBehaviorDetectionRules

      public List<BehaviorRule> listBehaviorDetectionRules() throws ApiException
      List all behavior detection rules Lists all behavior detection rules with pagination support
      Returns:
      List<BehaviorRule>
      Throws:
      ApiException - if fails to make API call
    • listBehaviorDetectionRules

      public List<BehaviorRule> listBehaviorDetectionRules(Map<String,String> additionalHeaders) throws ApiException
      List all behavior detection rules Lists all behavior detection rules with pagination support
      Parameters:
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<BehaviorRule>
      Throws:
      ApiException - if fails to make API call
    • listBehaviorDetectionRulesPaged

      public Iterable<BehaviorRule> listBehaviorDetectionRulesPaged()
      List all behavior detection rules (Paginated) Lists all behavior detection rules with pagination support This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.
      Returns:
      Iterable<BehaviorRule> lazy iterable over all pages
    • listBehaviorDetectionRulesPaged

      public Iterable<BehaviorRule> listBehaviorDetectionRulesPaged(Map<String,String> additionalHeaders)
      List all behavior detection rules (Paginated with additional headers) Lists all behavior detection rules with pagination support This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<BehaviorRule> lazy iterable over all pages
    • replaceBehaviorDetectionRule

      public BehaviorRule replaceBehaviorDetectionRule(String behaviorId, BehaviorRule rule) throws ApiException
      Replace a behavior detection rule Replaces a Behavior Detection Rule by `behaviorId`
      Parameters:
      behaviorId - ID of the Behavior Detection Rule (required)
      rule - (required)
      Returns:
      BehaviorRule
      Throws:
      ApiException - if fails to make API call
    • replaceBehaviorDetectionRule

      public BehaviorRule replaceBehaviorDetectionRule(String behaviorId, BehaviorRule rule, Map<String,String> additionalHeaders) throws ApiException
      Replace a behavior detection rule Replaces a Behavior Detection Rule by `behaviorId`
      Parameters:
      behaviorId - ID of the Behavior Detection Rule (required)
      rule - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      BehaviorRule
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

      protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()