Package com.dropbox.core.v2.teamlog
Class AppPermissionsChangedDetails
java.lang.Object
com.dropbox.core.v2.teamlog.AppPermissionsChangedDetails
Changed app permissions.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final AdminConsoleAppPolicyprotected final AdminConsoleAppPermissionprotected final AdminConsoleAppPolicy -
Constructor Summary
ConstructorsConstructorDescriptionAppPermissionsChangedDetails(AdminConsoleAppPolicy previousValue, AdminConsoleAppPolicy newValue) Changed app permissions.AppPermissionsChangedDetails(AdminConsoleAppPolicy previousValue, AdminConsoleAppPolicy newValue, String appName, AdminConsoleAppPermission permission) Changed app permissions. -
Method Summary
Modifier and TypeMethodDescriptionbooleanName of the app.New policy.Permission that was changed.Previous policy.inthashCode()newBuilder(AdminConsoleAppPolicy previousValue, AdminConsoleAppPolicy newValue) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
appName
-
permission
-
previousValue
-
newValue
-
-
Constructor Details
-
AppPermissionsChangedDetails
public AppPermissionsChangedDetails(@Nonnull AdminConsoleAppPolicy previousValue, @Nonnull AdminConsoleAppPolicy newValue, @Nullable String appName, @Nullable AdminConsoleAppPermission permission) Changed app permissions.Use
newBuilder(com.dropbox.core.v2.teamlog.AdminConsoleAppPolicy,com.dropbox.core.v2.teamlog.AdminConsoleAppPolicy)to create instances of this class without specifying values for all optional fields.- Parameters:
previousValue- Previous policy. Must not benull.newValue- New policy. Must not benull.appName- Name of the app.permission- Permission that was changed.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
AppPermissionsChangedDetails
public AppPermissionsChangedDetails(@Nonnull AdminConsoleAppPolicy previousValue, @Nonnull AdminConsoleAppPolicy newValue) Changed app permissions.The default values for unset fields will be used.
- Parameters:
previousValue- Previous policy. Must not benull.newValue- New policy. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getPreviousValue
Previous policy.- Returns:
- value for this field, never
null.
-
getNewValue
New policy.- Returns:
- value for this field, never
null.
-
getAppName
Name of the app.- Returns:
- value for this field, or
nullif not present.
-
getPermission
Permission that was changed.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static AppPermissionsChangedDetails.Builder newBuilder(AdminConsoleAppPolicy previousValue, AdminConsoleAppPolicy newValue) Returns a new builder for creating an instance of this class.- Parameters:
previousValue- Previous policy. Must not benull.newValue- New policy. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
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
-