Class AccessMethodLogInfo
This class is an open tagged union. Tagged unions instances are always
associated to a specific tag. This means only one of the isAbc()
methods will return true. You can use tag() to determine the
tag associated with this instance.
Open unions may be extended in the future with additional tags. If a new
tag is introduced that this SDK does not recognized, the OTHER value
will be used.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AccessMethodLogInfoCatch-all used for unknown tag values returned by the Dropbox servers. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessMethodLogInfoadminConsole(WebSessionLogInfo value) Returns an instance ofAccessMethodLogInfothat has its tag set toAccessMethodLogInfo.Tag.ADMIN_CONSOLE.static AccessMethodLogInfoapi(ApiSessionLogInfo value) Returns an instance ofAccessMethodLogInfothat has its tag set toAccessMethodLogInfo.Tag.API.static AccessMethodLogInfocontentManager(WebSessionLogInfo value) Returns an instance ofAccessMethodLogInfothat has its tag set toAccessMethodLogInfo.Tag.CONTENT_MANAGER.static AccessMethodLogInfoendUser(SessionLogInfo value) Returns an instance ofAccessMethodLogInfothat has its tag set toAccessMethodLogInfo.Tag.END_USER.static AccessMethodLogInfoReturns an instance ofAccessMethodLogInfothat has its tag set toAccessMethodLogInfo.Tag.ENTERPRISE_CONSOLE.booleanAdmin console session details.Api session details.Content manager session details.End user session details.Enterprise console session details.Sign in as session details.inthashCode()booleanbooleanisApi()booleanbooleanbooleanReturnstrueif this instance has the tagAccessMethodLogInfo.Tag.ENTERPRISE_CONSOLE,falseotherwise.booleanisOther()booleanstatic AccessMethodLogInfosignInAs(WebSessionLogInfo value) Returns an instance ofAccessMethodLogInfothat has its tag set toAccessMethodLogInfo.Tag.SIGN_IN_AS.tag()Returns the tag for this instance.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.Receiving a catch-all value typically indicates this SDK version is not up to date. Consider updating your SDK version to handle the new tags.
-
-
Method Details
-
tag
Returns the tag for this instance.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 returntrue. Callers are recommended to use the tag value in aswitchstatement to properly handle the different values for thisAccessMethodLogInfo.If a tag returned by the server is unrecognized by this SDK, the
AccessMethodLogInfo.Tag.OTHERvalue will be used.- Returns:
- the tag for this instance.
-
isAdminConsole
public boolean isAdminConsole()- Returns:
trueif this instance is tagged asAccessMethodLogInfo.Tag.ADMIN_CONSOLE,falseotherwise.
-
adminConsole
Returns an instance ofAccessMethodLogInfothat has its tag set toAccessMethodLogInfo.Tag.ADMIN_CONSOLE.Admin console session details.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
AccessMethodLogInfowith its tag set toAccessMethodLogInfo.Tag.ADMIN_CONSOLE. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getAdminConsoleValue
Admin console session details.This instance must be tagged as
AccessMethodLogInfo.Tag.ADMIN_CONSOLE.- Returns:
- The
WebSessionLogInfovalue associated with this instance ifisAdminConsole()istrue. - Throws:
IllegalStateException- IfisAdminConsole()isfalse.
-
isApi
public boolean isApi()- Returns:
trueif this instance is tagged asAccessMethodLogInfo.Tag.API,falseotherwise.
-
api
Returns an instance ofAccessMethodLogInfothat has its tag set toAccessMethodLogInfo.Tag.API.Api session details.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
AccessMethodLogInfowith its tag set toAccessMethodLogInfo.Tag.API. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getApiValue
Api session details.This instance must be tagged as
AccessMethodLogInfo.Tag.API.- Returns:
- The
ApiSessionLogInfovalue associated with this instance ifisApi()istrue. - Throws:
IllegalStateException- IfisApi()isfalse.
-
isContentManager
public boolean isContentManager()- Returns:
trueif this instance is tagged asAccessMethodLogInfo.Tag.CONTENT_MANAGER,falseotherwise.
-
contentManager
Returns an instance ofAccessMethodLogInfothat has its tag set toAccessMethodLogInfo.Tag.CONTENT_MANAGER.Content manager session details.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
AccessMethodLogInfowith its tag set toAccessMethodLogInfo.Tag.CONTENT_MANAGER. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getContentManagerValue
Content manager session details.This instance must be tagged as
AccessMethodLogInfo.Tag.CONTENT_MANAGER.- Returns:
- The
WebSessionLogInfovalue associated with this instance ifisContentManager()istrue. - Throws:
IllegalStateException- IfisContentManager()isfalse.
-
isEndUser
public boolean isEndUser()- Returns:
trueif this instance is tagged asAccessMethodLogInfo.Tag.END_USER,falseotherwise.
-
endUser
Returns an instance ofAccessMethodLogInfothat has its tag set toAccessMethodLogInfo.Tag.END_USER.End user session details.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
AccessMethodLogInfowith its tag set toAccessMethodLogInfo.Tag.END_USER. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getEndUserValue
End user session details.This instance must be tagged as
AccessMethodLogInfo.Tag.END_USER.- Returns:
- The
SessionLogInfovalue associated with this instance ifisEndUser()istrue. - Throws:
IllegalStateException- IfisEndUser()isfalse.
-
isEnterpriseConsole
public boolean isEnterpriseConsole()Returnstrueif this instance has the tagAccessMethodLogInfo.Tag.ENTERPRISE_CONSOLE,falseotherwise.- Returns:
trueif this instance is tagged asAccessMethodLogInfo.Tag.ENTERPRISE_CONSOLE,falseotherwise.
-
enterpriseConsole
Returns an instance ofAccessMethodLogInfothat has its tag set toAccessMethodLogInfo.Tag.ENTERPRISE_CONSOLE.Enterprise console session details.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
AccessMethodLogInfowith its tag set toAccessMethodLogInfo.Tag.ENTERPRISE_CONSOLE. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getEnterpriseConsoleValue
Enterprise console session details.This instance must be tagged as
AccessMethodLogInfo.Tag.ENTERPRISE_CONSOLE.- Returns:
- The
WebSessionLogInfovalue associated with this instance ifisEnterpriseConsole()istrue. - Throws:
IllegalStateException- IfisEnterpriseConsole()isfalse.
-
isSignInAs
public boolean isSignInAs()- Returns:
trueif this instance is tagged asAccessMethodLogInfo.Tag.SIGN_IN_AS,falseotherwise.
-
signInAs
Returns an instance ofAccessMethodLogInfothat has its tag set toAccessMethodLogInfo.Tag.SIGN_IN_AS.Sign in as session details.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
AccessMethodLogInfowith its tag set toAccessMethodLogInfo.Tag.SIGN_IN_AS. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getSignInAsValue
Sign in as session details.This instance must be tagged as
AccessMethodLogInfo.Tag.SIGN_IN_AS.- Returns:
- The
WebSessionLogInfovalue associated with this instance ifisSignInAs()istrue. - Throws:
IllegalStateException- IfisSignInAs()isfalse.
-
isOther
public boolean isOther()- Returns:
trueif this instance is tagged asAccessMethodLogInfo.Tag.OTHER,falseotherwise.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-