@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00") public interface Subscription extends ExtensibleResource
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getChannels() |
java.util.Map<java.lang.String,java.lang.Object> |
getLinks() |
NotificationType |
getNotificationType() |
Subscription |
getRoleSubscriptionByNotificationType(java.lang.String roleTypeOrRoleId,
java.lang.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(java.lang.String userId,
java.lang.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(java.lang.String roleTypeOrRoleId)
List all subscriptions of a Custom Role
When roleType List all subscriptions of a Role.
|
SubscriptionList |
listUserSubscriptions(java.lang.String userId)
List subscriptions of a User
List subscriptions of a User.
|
Subscription |
setChannels(java.util.List<java.lang.String> channels) |
Subscription |
setNotificationType(NotificationType notificationType) |
Subscription |
setStatus(SubscriptionStatus status) |
void |
subscribeRoleSubscriptionByNotificationType(java.lang.String roleTypeOrRoleId,
java.lang.String notificationType)
Subscribe a Custom Role to a specific notification type
When roleType Subscribes a Role to a specific notification type.
|
void |
subscribeUserSubscriptionByNotificationType(java.lang.String userId,
java.lang.String notificationType)
Subscribe to a specific notification type
Subscribes a User to a specific notification type.
|
void |
unsubscribeRoleSubscriptionByNotificationType(java.lang.String roleTypeOrRoleId,
java.lang.String notificationType)
Unsubscribe a Custom Role from a specific notification type
When roleType Unsubscribes a Role from a specific notification type.
|
void |
unsubscribeUserSubscriptionByNotificationType(java.lang.String userId,
java.lang.String notificationType)
Unsubscribe from a specific notification type
Unsubscribes a User from a specific notification type.
|
getResourceHref, setResourceHref
getBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringList
java.util.Map<java.lang.String,java.lang.Object> getLinks()
java.util.List<java.lang.String> getChannels()
Subscription setChannels(java.util.List<java.lang.String> channels)
NotificationType getNotificationType()
Subscription setNotificationType(NotificationType notificationType)
SubscriptionStatus getStatus()
Subscription setStatus(SubscriptionStatus status)
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="GET - /api/v1/users/{userId}/subscriptions/{notificationType}") Subscription getUserSubscriptionByNotificationType(java.lang.String userId, java.lang.String notificationType)
userId
- (required)notificationType
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="POST - /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/subscribe") void subscribeRoleSubscriptionByNotificationType(java.lang.String roleTypeOrRoleId, java.lang.String notificationType)
roleTypeOrRoleId
- (required)notificationType
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="POST - /api/v1/users/{userId}/subscriptions/{notificationType}/subscribe") void subscribeUserSubscriptionByNotificationType(java.lang.String userId, java.lang.String notificationType)
userId
- (required)notificationType
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="GET - /api/v1/roles/{roleTypeOrRoleId}/subscriptions") SubscriptionList listRoleSubscriptions(java.lang.String roleTypeOrRoleId)
roleTypeOrRoleId
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="POST - /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/unsubscribe") void unsubscribeRoleSubscriptionByNotificationType(java.lang.String roleTypeOrRoleId, java.lang.String notificationType)
roleTypeOrRoleId
- (required)notificationType
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="GET - /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}") Subscription getRoleSubscriptionByNotificationType(java.lang.String roleTypeOrRoleId, java.lang.String notificationType)
roleTypeOrRoleId
- (required)notificationType
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="POST - /api/v1/users/{userId}/subscriptions/{notificationType}/unsubscribe") void unsubscribeUserSubscriptionByNotificationType(java.lang.String userId, java.lang.String notificationType)
userId
- (required)notificationType
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-04-29T13:24:36.001-05:00", comments="GET - /api/v1/users/{userId}/subscriptions") SubscriptionList listUserSubscriptions(java.lang.String userId)
userId
- (required)Copyright © 2017-2022 Okta. All Rights Reserved.