public class AndroidPermissionAction extends Object implements com.github.davidmoten.odata.client.ODataType
| Modifier and Type | Class and Description |
|---|---|
static class |
AndroidPermissionAction.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected AndroidPermissionActionType |
action |
protected com.github.davidmoten.odata.client.ContextPath |
contextPath |
protected String |
odataType |
protected String |
permission |
protected com.github.davidmoten.odata.client.internal.UnmappedFields |
unmappedFields |
| Modifier | Constructor and Description |
|---|---|
protected |
AndroidPermissionAction() |
| Modifier and Type | Method and Description |
|---|---|
static AndroidPermissionAction.Builder |
builder()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
Optional<AndroidPermissionActionType> |
getAction()
“Type of Android permission action.”
|
Optional<String> |
getPermission()
“Android permission string, defined in the official Android documentation.
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
void |
postInject(boolean addKeysToContextPath) |
String |
toString() |
AndroidPermissionAction |
withAction(AndroidPermissionActionType action)
Returns an immutable copy of
this with just the action field
changed. |
AndroidPermissionAction |
withPermission(String permission)
Returns an immutable copy of
this with just the permission field
changed. |
protected com.github.davidmoten.odata.client.ContextPath contextPath
protected com.github.davidmoten.odata.client.internal.UnmappedFields unmappedFields
protected String odataType
protected String permission
protected AndroidPermissionActionType action
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypepublic Optional<String> getPermission()
public AndroidPermissionAction withPermission(String permission)
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'.”
permission - new value of permission field (as defined in service metadata)this with just the permission field changedpublic Optional<AndroidPermissionActionType> getAction()
public AndroidPermissionAction withAction(AndroidPermissionActionType action)
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.”
action - new value of action field (as defined in service metadata)this with just the action field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypepublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepublic static AndroidPermissionAction.Builder builder()
Copyright © 2018–2020. All rights reserved.