@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-07-07T09:07:50.516-05:00") public interface Subscription extends ExtensibleResource
| Modifier and Type | Method and Description | 
|---|---|
| List<String> | getChannels() | 
| Map<String,Object> | getLinks() | 
| NotificationType | getNotificationType() | 
| Subscription | getRoleSubscriptionByNotificationType(String roleTypeOrRoleId,
                                     String notificationType)Get subscriptions of a Custom Role with a specific notification type
 When roleType Get subscriptions of a Role with a specific notification type. | 
| SubscriptionStatus | getStatus() | 
| Subscription | getUserSubscriptionByNotificationType(String userId,
                                     String notificationType)Get the subscription of a User with a specific notification type
 Get the subscriptions of a User with a specific notification type. | 
| SubscriptionList | listRoleSubscriptions(String roleTypeOrRoleId)List all subscriptions of a Custom Role
 When roleType List all subscriptions of a Role. | 
| SubscriptionList | listUserSubscriptions(String userId)List subscriptions of a User
 List subscriptions of a User. | 
| Subscription | setChannels(List<String> channels) | 
| Subscription | setNotificationType(NotificationType notificationType) | 
| Subscription | setStatus(SubscriptionStatus status) | 
| void | subscribeRoleSubscriptionByNotificationType(String roleTypeOrRoleId,
                                           String notificationType)Subscribe a Custom Role to a specific notification type
 When roleType Subscribes a Role to a specific notification type. | 
| void | subscribeUserSubscriptionByNotificationType(String userId,
                                           String notificationType)Subscribe to a specific notification type
 Subscribes a User to a specific notification type. | 
| void | unsubscribeRoleSubscriptionByNotificationType(String roleTypeOrRoleId,
                                             String notificationType)Unsubscribe a Custom Role from a specific notification type
 When roleType Unsubscribes a Role from a specific notification type. | 
| void | unsubscribeUserSubscriptionByNotificationType(String userId,
                                             String notificationType)Unsubscribe from a specific notification type
 Unsubscribes a User from a specific notification type. | 
getResourceHref, setResourceHrefgetBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringListclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesSubscription setChannels(List<String> channels)
NotificationType getNotificationType()
Subscription setNotificationType(NotificationType notificationType)
SubscriptionStatus getStatus()
Subscription setStatus(SubscriptionStatus status)
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-07-07T09:07:50.516-05:00", comments="GET - /api/v1/users/{userId}/subscriptions/{notificationType}") Subscription getUserSubscriptionByNotificationType(String userId, String notificationType)
userId - (required)notificationType - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-07-07T09:07:50.516-05:00", comments="POST - /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/subscribe") void subscribeRoleSubscriptionByNotificationType(String roleTypeOrRoleId, String notificationType)
roleTypeOrRoleId - (required)notificationType - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-07-07T09:07:50.516-05:00", comments="POST - /api/v1/users/{userId}/subscriptions/{notificationType}/subscribe") void subscribeUserSubscriptionByNotificationType(String userId, String notificationType)
userId - (required)notificationType - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-07-07T09:07:50.516-05:00", comments="GET - /api/v1/roles/{roleTypeOrRoleId}/subscriptions") SubscriptionList listRoleSubscriptions(String roleTypeOrRoleId)
roleTypeOrRoleId - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-07-07T09:07:50.516-05:00", comments="POST - /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/unsubscribe") void unsubscribeRoleSubscriptionByNotificationType(String roleTypeOrRoleId, String notificationType)
roleTypeOrRoleId - (required)notificationType - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-07-07T09:07:50.516-05:00", comments="GET - /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}") Subscription getRoleSubscriptionByNotificationType(String roleTypeOrRoleId, String notificationType)
roleTypeOrRoleId - (required)notificationType - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-07-07T09:07:50.516-05:00", comments="POST - /api/v1/users/{userId}/subscriptions/{notificationType}/unsubscribe") void unsubscribeUserSubscriptionByNotificationType(String userId, String notificationType)
userId - (required)notificationType - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-07-07T09:07:50.516-05:00", comments="GET - /api/v1/users/{userId}/subscriptions") SubscriptionList listUserSubscriptions(String userId)
userId - (required)Copyright © 2017–2023 Okta. All rights reserved.