Modifier and Type | Class and Description |
---|---|
static class |
RevokeDeviceSessionArg.Tag
Discriminating tag type for
RevokeDeviceSessionArg . |
Modifier and Type | Method and Description |
---|---|
static RevokeDeviceSessionArg |
desktopClient(RevokeDesktopClientArg value)
Returns an instance of
RevokeDeviceSessionArg that has its tag
set to RevokeDeviceSessionArg.Tag.DESKTOP_CLIENT . |
boolean |
equals(Object obj) |
RevokeDesktopClientArg |
getDesktopClientValue()
Unlink a linked desktop device
|
DeviceSessionArg |
getMobileClientValue()
Unlink a linked mobile device
|
DeviceSessionArg |
getWebSessionValue()
End an active session
|
int |
hashCode() |
boolean |
isDesktopClient()
Returns
true if this instance has the tag RevokeDeviceSessionArg.Tag.DESKTOP_CLIENT , false otherwise. |
boolean |
isMobileClient()
Returns
true if this instance has the tag RevokeDeviceSessionArg.Tag.MOBILE_CLIENT , false otherwise. |
boolean |
isWebSession()
|
static RevokeDeviceSessionArg |
mobileClient(DeviceSessionArg value)
Returns an instance of
RevokeDeviceSessionArg that has its tag
set to RevokeDeviceSessionArg.Tag.MOBILE_CLIENT . |
RevokeDeviceSessionArg.Tag |
tag()
Returns the tag for this instance.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
static RevokeDeviceSessionArg |
webSession(DeviceSessionArg value)
Returns an instance of
RevokeDeviceSessionArg that has its tag
set to RevokeDeviceSessionArg.Tag.WEB_SESSION . |
public RevokeDeviceSessionArg.Tag tag()
This class is a tagged union. Tagged unions instances are always
associated to a specific tag. This means only one of the isXyz()
methods will return true
. Callers are recommended to use the tag
value in a switch
statement to properly handle the different
values for this RevokeDeviceSessionArg
.
public boolean isWebSession()
true
if this instance is tagged as RevokeDeviceSessionArg.Tag.WEB_SESSION
, false
otherwise.public static RevokeDeviceSessionArg webSession(DeviceSessionArg value)
RevokeDeviceSessionArg
that has its tag
set to RevokeDeviceSessionArg.Tag.WEB_SESSION
.
End an active session
value
- value to assign to this instance.RevokeDeviceSessionArg
with its tag set to
RevokeDeviceSessionArg.Tag.WEB_SESSION
.IllegalArgumentException
- if value
is null
.public DeviceSessionArg getWebSessionValue()
This instance must be tagged as RevokeDeviceSessionArg.Tag.WEB_SESSION
.
DeviceSessionArg
value associated with this instance
if isWebSession()
is true
.IllegalStateException
- If isWebSession()
is false
.public boolean isDesktopClient()
true
if this instance has the tag RevokeDeviceSessionArg.Tag.DESKTOP_CLIENT
, false
otherwise.true
if this instance is tagged as RevokeDeviceSessionArg.Tag.DESKTOP_CLIENT
, false
otherwise.public static RevokeDeviceSessionArg desktopClient(RevokeDesktopClientArg value)
RevokeDeviceSessionArg
that has its tag
set to RevokeDeviceSessionArg.Tag.DESKTOP_CLIENT
.
Unlink a linked desktop device
value
- value to assign to this instance.RevokeDeviceSessionArg
with its tag set to
RevokeDeviceSessionArg.Tag.DESKTOP_CLIENT
.IllegalArgumentException
- if value
is null
.public RevokeDesktopClientArg getDesktopClientValue()
This instance must be tagged as RevokeDeviceSessionArg.Tag.DESKTOP_CLIENT
.
RevokeDesktopClientArg
value associated with this
instance if isDesktopClient()
is true
.IllegalStateException
- If isDesktopClient()
is false
.public boolean isMobileClient()
true
if this instance has the tag RevokeDeviceSessionArg.Tag.MOBILE_CLIENT
, false
otherwise.true
if this instance is tagged as RevokeDeviceSessionArg.Tag.MOBILE_CLIENT
, false
otherwise.public static RevokeDeviceSessionArg mobileClient(DeviceSessionArg value)
RevokeDeviceSessionArg
that has its tag
set to RevokeDeviceSessionArg.Tag.MOBILE_CLIENT
.
Unlink a linked mobile device
value
- value to assign to this instance.RevokeDeviceSessionArg
with its tag set to
RevokeDeviceSessionArg.Tag.MOBILE_CLIENT
.IllegalArgumentException
- if value
is null
.public DeviceSessionArg getMobileClientValue()
This instance must be tagged as RevokeDeviceSessionArg.Tag.MOBILE_CLIENT
.
DeviceSessionArg
value associated with this instance
if isMobileClient()
is true
.IllegalStateException
- If isMobileClient()
is false
.public String toStringMultiline()
The returned String may contain newlines.