Class SubscriptionApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-09-23T16:19:57.008753975Z[Etc/UTC]", comments="Generator version: 7.8.0") public class SubscriptionApi extends Object
  • Constructor Details

    • SubscriptionApi

      public SubscriptionApi()
    • SubscriptionApi

      public SubscriptionApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getSubscriptionsNotificationTypeRole

      public Subscription getSubscriptionsNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef, NotificationType notificationType) throws ApiException
      Retrieve a Subscription for a Role Retrieves a subscription by `notificationType` for a specified Role
      Parameters:
      roleRef - A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Roles](/openapi/okta-management/guides/roles/#standard-roles). (required)
      notificationType - (required)
      Returns:
      Subscription
      Throws:
      ApiException - if fails to make API call
    • getSubscriptionsNotificationTypeRole

      public Subscription getSubscriptionsNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef, NotificationType notificationType, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a Subscription for a Role Retrieves a subscription by `notificationType` for a specified Role
      Parameters:
      roleRef - A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Roles](/openapi/okta-management/guides/roles/#standard-roles). (required)
      notificationType - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      Subscription
      Throws:
      ApiException - if fails to make API call
    • getSubscriptionsNotificationTypeUser

      public Subscription getSubscriptionsNotificationTypeUser(NotificationType notificationType, String userId) throws ApiException
      Retrieve a Subscription for a User Retrieves a subscription by `notificationType` for a specified User. Returns an `AccessDeniedException` message if requests are made for another user.
      Parameters:
      notificationType - (required)
      userId - ID of an existing Okta user (required)
      Returns:
      Subscription
      Throws:
      ApiException - if fails to make API call
    • getSubscriptionsNotificationTypeUser

      public Subscription getSubscriptionsNotificationTypeUser(NotificationType notificationType, String userId, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a Subscription for a User Retrieves a subscription by `notificationType` for a specified User. Returns an `AccessDeniedException` message if requests are made for another user.
      Parameters:
      notificationType - (required)
      userId - ID of an existing Okta user (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      Subscription
      Throws:
      ApiException - if fails to make API call
    • listSubscriptionsRole

      public List<Subscription> listSubscriptionsRole(ListSubscriptionsRoleRoleRefParameter roleRef) throws ApiException
      List all Subscriptions for a Role Lists all subscriptions available to a specified Role
      Parameters:
      roleRef - A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Roles](/openapi/okta-management/guides/roles/#standard-roles). (required)
      Returns:
      List<Subscription>
      Throws:
      ApiException - if fails to make API call
    • listSubscriptionsRole

      public List<Subscription> listSubscriptionsRole(ListSubscriptionsRoleRoleRefParameter roleRef, Map<String,String> additionalHeaders) throws ApiException
      List all Subscriptions for a Role Lists all subscriptions available to a specified Role
      Parameters:
      roleRef - A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Roles](/openapi/okta-management/guides/roles/#standard-roles). (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<Subscription>
      Throws:
      ApiException - if fails to make API call
    • listSubscriptionsUser

      public List<Subscription> listSubscriptionsUser(String userId) throws ApiException
      List all Subscriptions for a User Lists all subscriptions available to a specified User. Returns an `AccessDeniedException` message if requests are made for another user.
      Parameters:
      userId - ID of an existing Okta user (required)
      Returns:
      List<Subscription>
      Throws:
      ApiException - if fails to make API call
    • listSubscriptionsUser

      public List<Subscription> listSubscriptionsUser(String userId, Map<String,String> additionalHeaders) throws ApiException
      List all Subscriptions for a User Lists all subscriptions available to a specified User. Returns an `AccessDeniedException` message if requests are made for another user.
      Parameters:
      userId - ID of an existing Okta user (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<Subscription>
      Throws:
      ApiException - if fails to make API call
    • subscribeByNotificationTypeRole

      public void subscribeByNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef, NotificationType notificationType) throws ApiException
      Subscribe a Role to a Specific Notification Type Subscribes a Role to a specified notification type. Changes to Role subscriptions override the subscription status of any individual users with the Role.
      Parameters:
      roleRef - A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Roles](/openapi/okta-management/guides/roles/#standard-roles). (required)
      notificationType - (required)
      Throws:
      ApiException - if fails to make API call
    • subscribeByNotificationTypeRole

      public void subscribeByNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef, NotificationType notificationType, Map<String,String> additionalHeaders) throws ApiException
      Subscribe a Role to a Specific Notification Type Subscribes a Role to a specified notification type. Changes to Role subscriptions override the subscription status of any individual users with the Role.
      Parameters:
      roleRef - A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Roles](/openapi/okta-management/guides/roles/#standard-roles). (required)
      notificationType - (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • subscribeByNotificationTypeUser

      public void subscribeByNotificationTypeUser(NotificationType notificationType, String userId) throws ApiException
      Subscribe a User to a Specific Notification Type Subscribes the current User to a specified notification type. Returns an `AccessDeniedException` message if requests are made for another user.
      Parameters:
      notificationType - (required)
      userId - ID of an existing Okta user (required)
      Throws:
      ApiException - if fails to make API call
    • subscribeByNotificationTypeUser

      public void subscribeByNotificationTypeUser(NotificationType notificationType, String userId, Map<String,String> additionalHeaders) throws ApiException
      Subscribe a User to a Specific Notification Type Subscribes the current User to a specified notification type. Returns an `AccessDeniedException` message if requests are made for another user.
      Parameters:
      notificationType - (required)
      userId - ID of an existing Okta user (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • unsubscribeByNotificationTypeRole

      public void unsubscribeByNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef, NotificationType notificationType) throws ApiException
      Unsubscribe a Role from a Specific Notification Type Unsubscribes a Role from a specified notification type. Changes to Role subscriptions override the subscription status of any individual users with the Role.
      Parameters:
      roleRef - A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Roles](/openapi/okta-management/guides/roles/#standard-roles). (required)
      notificationType - (required)
      Throws:
      ApiException - if fails to make API call
    • unsubscribeByNotificationTypeRole

      public void unsubscribeByNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef, NotificationType notificationType, Map<String,String> additionalHeaders) throws ApiException
      Unsubscribe a Role from a Specific Notification Type Unsubscribes a Role from a specified notification type. Changes to Role subscriptions override the subscription status of any individual users with the Role.
      Parameters:
      roleRef - A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Roles](/openapi/okta-management/guides/roles/#standard-roles). (required)
      notificationType - (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • unsubscribeByNotificationTypeUser

      public void unsubscribeByNotificationTypeUser(NotificationType notificationType, String userId) throws ApiException
      Unsubscribe a User from a Specific Notification Type Unsubscribes the current User from a specified notification type. Returns an `AccessDeniedException` message if requests are made for another user.
      Parameters:
      notificationType - (required)
      userId - ID of an existing Okta user (required)
      Throws:
      ApiException - if fails to make API call
    • unsubscribeByNotificationTypeUser

      public void unsubscribeByNotificationTypeUser(NotificationType notificationType, String userId, Map<String,String> additionalHeaders) throws ApiException
      Unsubscribe a User from a Specific Notification Type Unsubscribes the current User from a specified notification type. Returns an `AccessDeniedException` message if requests are made for another user.
      Parameters:
      notificationType - (required)
      userId - ID of an existing Okta user (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

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