Class AndroidPermissionAction

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataType

    public class AndroidPermissionAction
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “Mapping between an Android app permission and the action Android should take when that permission is requested.”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • permission

        protected String permission
    • Constructor Detail

      • AndroidPermissionAction

        protected AndroidPermissionAction()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • withAction

        public AndroidPermissionAction withAction​(AndroidPermissionActionType action)
        Returns an immutable copy of this with just the action field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Type of Android permission action.”

        Parameters:
        action - new value of action field (as defined in service metadata)
        Returns:
        immutable copy of this with just the action field changed
      • getPermission

        public Optional<String> getPermission()
        “Android permission string, defined in the official Android documentation. Example 'android.permission.READ_CONTACTS'.”
        Returns:
        property permission
      • withPermission

        public AndroidPermissionAction withPermission​(String permission)
        Returns an immutable copy of this with just the permission field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Android permission string, defined in the official Android documentation. Example 'android.permission.READ_CONTACTS'.”

        Parameters:
        permission - new value of permission field (as defined in service metadata)
        Returns:
        immutable copy of this with just the permission field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
      • builder

        public static AndroidPermissionAction.Builder builder()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class