Class RoleCResourceSetApi

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

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

    • RoleCResourceSetApi

      public RoleCResourceSetApi()
    • RoleCResourceSetApi

      public RoleCResourceSetApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createResourceSet

      public ResourceSet createResourceSet(CreateResourceSetRequest instance) throws ApiException
      Create a resource set Creates a new resource set. See [Supported resources](/openapi/okta-management/guides/roles/#supported-resources). > **Note:** The maximum number of `resources` allowed in a resource set object is 1000. Resources are identified by either an Okta Resource Name (ORN) or by a REST URL format. See [Okta Resource Name](/openapi/okta-management/guides/roles/#okta-resource-name-orn).
      Parameters:
      instance - (required)
      Returns:
      ResourceSet
      Throws:
      ApiException - if fails to make API call
    • createResourceSet

      public ResourceSet createResourceSet(CreateResourceSetRequest instance, Map<String,String> additionalHeaders) throws ApiException
      Create a resource set Creates a new resource set. See [Supported resources](/openapi/okta-management/guides/roles/#supported-resources). > **Note:** The maximum number of `resources` allowed in a resource set object is 1000. Resources are identified by either an Okta Resource Name (ORN) or by a REST URL format. See [Okta Resource Name](/openapi/okta-management/guides/roles/#okta-resource-name-orn).
      Parameters:
      instance - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ResourceSet
      Throws:
      ApiException - if fails to make API call
    • deleteResourceSet

      public void deleteResourceSet(String resourceSetIdOrLabel) throws ApiException
      Delete a resource set Deletes a resource set by `resourceSetIdOrLabel`
      Parameters:
      resourceSetIdOrLabel - `id` or `label` of the resource set (required)
      Throws:
      ApiException - if fails to make API call
    • deleteResourceSet

      public void deleteResourceSet(String resourceSetIdOrLabel, Map<String,String> additionalHeaders) throws ApiException
      Delete a resource set Deletes a resource set by `resourceSetIdOrLabel`
      Parameters:
      resourceSetIdOrLabel - `id` or `label` of the resource set (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getResourceSet

      public ResourceSet getResourceSet(String resourceSetIdOrLabel) throws ApiException
      Retrieve a resource set Retrieves a resource set by `resourceSetIdOrLabel`
      Parameters:
      resourceSetIdOrLabel - `id` or `label` of the resource set (required)
      Returns:
      ResourceSet
      Throws:
      ApiException - if fails to make API call
    • getResourceSet

      public ResourceSet getResourceSet(String resourceSetIdOrLabel, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a resource set Retrieves a resource set by `resourceSetIdOrLabel`
      Parameters:
      resourceSetIdOrLabel - `id` or `label` of the resource set (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ResourceSet
      Throws:
      ApiException - if fails to make API call
    • listResourceSets

      public ResourceSets listResourceSets(String after) throws ApiException
      List all resource sets Lists all resource sets 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:
      ResourceSets
      Throws:
      ApiException - if fails to make API call
    • listResourceSets

      public ResourceSets listResourceSets(String after, Map<String,String> additionalHeaders) throws ApiException
      List all resource sets Lists all resource sets 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:
      ResourceSets
      Throws:
      ApiException - if fails to make API call
    • replaceResourceSet

      public ResourceSet replaceResourceSet(String resourceSetIdOrLabel, ResourceSet instance) throws ApiException
      Replace a resource set Replaces the label and description of a resource set. See [Supported resources](/openapi/okta-management/guides/roles/#supported-resources).
      Parameters:
      resourceSetIdOrLabel - `id` or `label` of the resource set (required)
      instance - (required)
      Returns:
      ResourceSet
      Throws:
      ApiException - if fails to make API call
    • replaceResourceSet

      public ResourceSet replaceResourceSet(String resourceSetIdOrLabel, ResourceSet instance, Map<String,String> additionalHeaders) throws ApiException
      Replace a resource set Replaces the label and description of a resource set. See [Supported resources](/openapi/okta-management/guides/roles/#supported-resources).
      Parameters:
      resourceSetIdOrLabel - `id` or `label` of the resource set (required)
      instance - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ResourceSet
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

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