Class RoleECustomApi

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

@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 RoleECustomApi extends Object
  • Constructor Details

    • RoleECustomApi

      public RoleECustomApi()
    • RoleECustomApi

      public RoleECustomApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createRole

      public IamRole createRole(CreateIamRoleRequest instance) throws ApiException
      Create a custom role Creates a custom role
      Parameters:
      instance - (required)
      Returns:
      IamRole
      Throws:
      ApiException - if fails to make API call
    • createRole

      public IamRole createRole(CreateIamRoleRequest instance, Map<String,String> additionalHeaders) throws ApiException
      Create a custom role Creates a custom role
      Parameters:
      instance - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      IamRole
      Throws:
      ApiException - if fails to make API call
    • deleteRole

      public void deleteRole(String roleIdOrLabel) throws ApiException
      Delete a custom role Deletes a custom role by `roleIdOrLabel`
      Parameters:
      roleIdOrLabel - `id` or `label` of the role (required)
      Throws:
      ApiException - if fails to make API call
    • deleteRole

      public void deleteRole(String roleIdOrLabel, Map<String,String> additionalHeaders) throws ApiException
      Delete a custom role Deletes a custom role by `roleIdOrLabel`
      Parameters:
      roleIdOrLabel - `id` or `label` of the role (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getRole

      public IamRole getRole(String roleIdOrLabel) throws ApiException
      Retrieve a role Retrieves a role by `roleIdOrLabel`
      Parameters:
      roleIdOrLabel - `id` or `label` of the role (required)
      Returns:
      IamRole
      Throws:
      ApiException - if fails to make API call
    • getRole

      public IamRole getRole(String roleIdOrLabel, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a role Retrieves a role by `roleIdOrLabel`
      Parameters:
      roleIdOrLabel - `id` or `label` of the role (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      IamRole
      Throws:
      ApiException - if fails to make API call
    • listRoles

      public IamRoles listRoles(String after) throws ApiException
      List all custom roles Lists all custom roles with pagination support
      Parameters:
      after - The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      Returns:
      IamRoles
      Throws:
      ApiException - if fails to make API call
    • listRoles

      public IamRoles listRoles(String after, Map<String,String> additionalHeaders) throws ApiException
      List all custom roles Lists all custom roles with pagination support
      Parameters:
      after - The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      additionalHeaders - additionalHeaders for this call
      Returns:
      IamRoles
      Throws:
      ApiException - if fails to make API call
    • replaceRole

      public IamRole replaceRole(String roleIdOrLabel, UpdateIamRoleRequest instance) throws ApiException
      Replace a custom role Replaces the label and description for a custom role by `roleIdOrLabel`
      Parameters:
      roleIdOrLabel - `id` or `label` of the role (required)
      instance - (required)
      Returns:
      IamRole
      Throws:
      ApiException - if fails to make API call
    • replaceRole

      public IamRole replaceRole(String roleIdOrLabel, UpdateIamRoleRequest instance, Map<String,String> additionalHeaders) throws ApiException
      Replace a custom role Replaces the label and description for a custom role by `roleIdOrLabel`
      Parameters:
      roleIdOrLabel - `id` or `label` of the role (required)
      instance - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      IamRole
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

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