Package com.dropbox.core.v2.teamlog
Class AppPermissionsChangedDetails
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.AppPermissionsChangedDetails
-
public class AppPermissionsChangedDetails extends java.lang.Object
Changed app permissions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AppPermissionsChangedDetails.Builder
Builder forAppPermissionsChangedDetails
.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
appName
protected AdminConsoleAppPolicy
newValue
protected AdminConsoleAppPermission
permission
protected AdminConsoleAppPolicy
previousValue
-
Constructor Summary
Constructors Constructor Description AppPermissionsChangedDetails(AdminConsoleAppPolicy previousValue, AdminConsoleAppPolicy newValue)
Changed app permissions.AppPermissionsChangedDetails(AdminConsoleAppPolicy previousValue, AdminConsoleAppPolicy newValue, java.lang.String appName, AdminConsoleAppPermission permission)
Changed app permissions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getAppName()
Name of the app.AdminConsoleAppPolicy
getNewValue()
New policy.AdminConsoleAppPermission
getPermission()
Permission that was changed.AdminConsoleAppPolicy
getPreviousValue()
Previous policy.int
hashCode()
static AppPermissionsChangedDetails.Builder
newBuilder(AdminConsoleAppPolicy previousValue, AdminConsoleAppPolicy newValue)
Returns a new builder for creating an instance of this class.java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
appName
@Nullable protected final java.lang.String appName
-
permission
@Nullable protected final AdminConsoleAppPermission permission
-
previousValue
@Nonnull protected final AdminConsoleAppPolicy previousValue
-
newValue
@Nonnull protected final AdminConsoleAppPolicy newValue
-
-
Constructor Detail
-
AppPermissionsChangedDetails
public AppPermissionsChangedDetails(@Nonnull AdminConsoleAppPolicy previousValue, @Nonnull AdminConsoleAppPolicy newValue, @Nullable java.lang.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:
java.lang.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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getPreviousValue
@Nonnull public AdminConsoleAppPolicy getPreviousValue()
Previous policy.- Returns:
- value for this field, never
null
.
-
getNewValue
@Nonnull public AdminConsoleAppPolicy getNewValue()
New policy.- Returns:
- value for this field, never
null
.
-
getAppName
@Nullable public java.lang.String getAppName()
Name of the app.- Returns:
- value for this field, or
null
if not present.
-
getPermission
@Nullable public AdminConsoleAppPermission getPermission()
Permission that was changed.- Returns:
- value for this field, or
null
if 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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.String 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
-
-