Package com.okta.sdk.resource.api
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivateBehaviorDetectionRule(String behaviorId) Activate a behavior detection rule Activates a behavior detection ruleactivateBehaviorDetectionRule(String behaviorId, Map<String, String> additionalHeaders) Activate a behavior detection rule Activates a behavior detection ruleCreate a behavior detection rule Creates a new behavior detection rulecreateBehaviorDetectionRule(BehaviorRule rule, Map<String, String> additionalHeaders) Create a behavior detection rule Creates a new behavior detection ruledeactivateBehaviorDetectionRule(String behaviorId) Deactivate a behavior detection rule Deactivates a behavior detection ruledeactivateBehaviorDetectionRule(String behaviorId, Map<String, String> additionalHeaders) Deactivate a behavior detection rule Deactivates a behavior detection rulevoiddeleteBehaviorDetectionRule(String behaviorId) Delete a behavior detection rule Deletes a Behavior Detection Rule by `behaviorId`voiddeleteBehaviorDetectionRule(String behaviorId, Map<String, String> additionalHeaders) Delete a behavior detection rule Deletes a Behavior Detection Rule by `behaviorId`getBehaviorDetectionRule(String behaviorId) Retrieve a behavior detection rule Retrieves a Behavior Detection Rule by `behaviorId`getBehaviorDetectionRule(String behaviorId, Map<String, String> additionalHeaders) Retrieve a behavior detection rule Retrieves a Behavior Detection Rule by `behaviorId`protected static com.fasterxml.jackson.databind.ObjectMapperList all behavior detection rules Lists all behavior detection rules with pagination supportlistBehaviorDetectionRules(Map<String, String> additionalHeaders) List all behavior detection rules Lists all behavior detection rules with pagination supportList all behavior detection rules (Paginated) Lists all behavior detection rules with pagination support This method returns a lazy, paginated iterable that automatically handles pagination.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.replaceBehaviorDetectionRule(String behaviorId, BehaviorRule rule) Replace a behavior detection rule Replaces a Behavior Detection Rule by `behaviorId`replaceBehaviorDetectionRule(String behaviorId, BehaviorRule rule, Map<String, String> additionalHeaders) Replace a behavior detection rule Replaces a Behavior Detection Rule by `behaviorId`voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
BehaviorApi
public BehaviorApi() -
BehaviorApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
activateBehaviorDetectionRule
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 ApiExceptionActivate 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
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 ApiExceptionCreate 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
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 ApiExceptionDeactivate 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
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 ApiExceptionDelete 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
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 ApiExceptionRetrieve 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
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 ApiExceptionList 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
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
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 ApiExceptionReplace 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()
-