Class AppPermissionsChangedDetails


  • public class AppPermissionsChangedDetails
    extends java.lang.Object
    Changed app permissions.
    • Constructor Detail

      • AppPermissionsChangedDetails

        public AppPermissionsChangedDetails​(AdminConsoleAppPolicy previousValue,
                                            AdminConsoleAppPolicy newValue)
        Changed app permissions.

        The default values for unset fields will be used.

        Parameters:
        previousValue - Previous policy. Must not be null.
        newValue - New policy. Must not be null.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getPreviousValue

        public AdminConsoleAppPolicy getPreviousValue()
        Previous policy.
        Returns:
        value for this field, never null.
      • getNewValue

        public AdminConsoleAppPolicy getNewValue()
        New policy.
        Returns:
        value for this field, never null.
      • getAppName

        public java.lang.String getAppName()
        Name of the app.
        Returns:
        value for this field, or null if not present.
      • getPermission

        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 be null.
        newValue - New policy. Must not be null.
        Returns:
        builder for this class.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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