Class FederationStatusChangeAdditionalInfo
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 ClassesModifier and TypeClassDescriptionstatic enumDiscriminating tag type forFederationStatusChangeAdditionalInfo. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FederationStatusChangeAdditionalInfoCatch-all used for unknown tag values returned by the Dropbox servers. -
Method Summary
Modifier and TypeMethodDescriptionReturns an instance ofFederationStatusChangeAdditionalInfothat has its tag set toFederationStatusChangeAdditionalInfo.Tag.CONNECTED_TEAM_NAME.booleanThe name of the teamThe email to which the request was sentThe name of the organizationinthashCode()booleanReturnstrueif this instance has the tagFederationStatusChangeAdditionalInfo.Tag.CONNECTED_TEAM_NAME,falseotherwise.booleanReturnstrueif this instance has the tagFederationStatusChangeAdditionalInfo.Tag.NON_TRUSTED_TEAM_DETAILS,falseotherwise.booleanReturnstrueif this instance has the tagFederationStatusChangeAdditionalInfo.Tag.ORGANIZATION_NAME,falseotherwise.booleanisOther()Returnstrueif this instance has the tagFederationStatusChangeAdditionalInfo.Tag.OTHER,falseotherwise.Returns an instance ofFederationStatusChangeAdditionalInfothat has its tag set toFederationStatusChangeAdditionalInfo.Tag.NON_TRUSTED_TEAM_DETAILS.organizationName(OrganizationName value) Returns an instance ofFederationStatusChangeAdditionalInfothat has its tag set toFederationStatusChangeAdditionalInfo.Tag.ORGANIZATION_NAME.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 thisFederationStatusChangeAdditionalInfo.If a tag returned by the server is unrecognized by this SDK, the
FederationStatusChangeAdditionalInfo.Tag.OTHERvalue will be used.- Returns:
- the tag for this instance.
-
isConnectedTeamName
public boolean isConnectedTeamName()Returnstrueif this instance has the tagFederationStatusChangeAdditionalInfo.Tag.CONNECTED_TEAM_NAME,falseotherwise.- Returns:
trueif this instance is tagged asFederationStatusChangeAdditionalInfo.Tag.CONNECTED_TEAM_NAME,falseotherwise.
-
connectedTeamName
Returns an instance ofFederationStatusChangeAdditionalInfothat has its tag set toFederationStatusChangeAdditionalInfo.Tag.CONNECTED_TEAM_NAME.The name of the team
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
FederationStatusChangeAdditionalInfowith its tag set toFederationStatusChangeAdditionalInfo.Tag.CONNECTED_TEAM_NAME. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getConnectedTeamNameValue
The name of the teamThis instance must be tagged as
FederationStatusChangeAdditionalInfo.Tag.CONNECTED_TEAM_NAME.- Returns:
- The
ConnectedTeamNamevalue associated with this instance ifisConnectedTeamName()istrue. - Throws:
IllegalStateException- IfisConnectedTeamName()isfalse.
-
isNonTrustedTeamDetails
public boolean isNonTrustedTeamDetails()Returnstrueif this instance has the tagFederationStatusChangeAdditionalInfo.Tag.NON_TRUSTED_TEAM_DETAILS,falseotherwise.- Returns:
trueif this instance is tagged asFederationStatusChangeAdditionalInfo.Tag.NON_TRUSTED_TEAM_DETAILS,falseotherwise.
-
nonTrustedTeamDetails
public static FederationStatusChangeAdditionalInfo nonTrustedTeamDetails(NonTrustedTeamDetails value) Returns an instance ofFederationStatusChangeAdditionalInfothat has its tag set toFederationStatusChangeAdditionalInfo.Tag.NON_TRUSTED_TEAM_DETAILS.The email to which the request was sent
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
FederationStatusChangeAdditionalInfowith its tag set toFederationStatusChangeAdditionalInfo.Tag.NON_TRUSTED_TEAM_DETAILS. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getNonTrustedTeamDetailsValue
The email to which the request was sentThis instance must be tagged as
FederationStatusChangeAdditionalInfo.Tag.NON_TRUSTED_TEAM_DETAILS.- Returns:
- The
NonTrustedTeamDetailsvalue associated with this instance ifisNonTrustedTeamDetails()istrue. - Throws:
IllegalStateException- IfisNonTrustedTeamDetails()isfalse.
-
isOrganizationName
public boolean isOrganizationName()Returnstrueif this instance has the tagFederationStatusChangeAdditionalInfo.Tag.ORGANIZATION_NAME,falseotherwise.- Returns:
trueif this instance is tagged asFederationStatusChangeAdditionalInfo.Tag.ORGANIZATION_NAME,falseotherwise.
-
organizationName
Returns an instance ofFederationStatusChangeAdditionalInfothat has its tag set toFederationStatusChangeAdditionalInfo.Tag.ORGANIZATION_NAME.The name of the organization
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
FederationStatusChangeAdditionalInfowith its tag set toFederationStatusChangeAdditionalInfo.Tag.ORGANIZATION_NAME. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getOrganizationNameValue
The name of the organizationThis instance must be tagged as
FederationStatusChangeAdditionalInfo.Tag.ORGANIZATION_NAME.- Returns:
- The
OrganizationNamevalue associated with this instance ifisOrganizationName()istrue. - Throws:
IllegalStateException- IfisOrganizationName()isfalse.
-
isOther
public boolean isOther()Returnstrueif this instance has the tagFederationStatusChangeAdditionalInfo.Tag.OTHER,falseotherwise.- Returns:
trueif this instance is tagged asFederationStatusChangeAdditionalInfo.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
-