Class AndroidForWorkMobileAppConfiguration

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

    public class AndroidForWorkMobileAppConfiguration
    extends ManagedDeviceMobileAppConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Contains properties, inherited properties and actions for AFW mobile app configurations.”
    • Constructor Detail

      • AndroidForWorkMobileAppConfiguration

        protected AndroidForWorkMobileAppConfiguration()
    • Method Detail

      • builderAndroidForWorkMobileAppConfiguration

        public static AndroidForWorkMobileAppConfiguration.Builder builderAndroidForWorkMobileAppConfiguration()
        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
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class ManagedDeviceMobileAppConfiguration
      • postInject

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

        public Optional<Boolean> getConnectedAppsEnabled()
        “Setting to specify whether to allow ConnectedApps experience for this app.”
        Returns:
        property connectedAppsEnabled
      • withConnectedAppsEnabled

        public AndroidForWorkMobileAppConfiguration withConnectedAppsEnabled​(Boolean connectedAppsEnabled)
        Returns an immutable copy of this with just the connectedAppsEnabled 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.

        “Setting to specify whether to allow ConnectedApps experience for this app.”

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

        public Optional<String> getPackageId()
        “Android For Work app configuration package id.”
        Returns:
        property packageId
      • withPackageId

        public AndroidForWorkMobileAppConfiguration withPackageId​(String packageId)
        Returns an immutable copy of this with just the packageId 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 For Work app configuration package id.”

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

        public Optional<String> getPayloadJson()
        “Android For Work app configuration JSON payload.”
        Returns:
        property payloadJson
      • withPayloadJson

        public AndroidForWorkMobileAppConfiguration withPayloadJson​(String payloadJson)
        Returns an immutable copy of this with just the payloadJson 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 For Work app configuration JSON payload.”

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

        public com.github.davidmoten.odata.client.CollectionPage<AndroidPermissionAction> getPermissionActions()
        “List of Android app permissions and corresponding permission actions.”
        Returns:
        property permissionActions
      • withPermissionActions

        public AndroidForWorkMobileAppConfiguration withPermissionActions​(List<AndroidPermissionAction> permissionActions)
        Returns an immutable copy of this with just the permissionActions 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.

        “List of Android app permissions and corresponding permission actions.”

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

        public com.github.davidmoten.odata.client.CollectionPage<AndroidPermissionAction> getPermissionActions​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “List of Android app permissions and corresponding permission actions.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property permissionActions
      • getProfileApplicability

        public Optional<AndroidProfileApplicability> getProfileApplicability()
        “Android Enterprise profile applicability (AndroidWorkProfile, DeviceOwner, or default (applies to both)).”
        Returns:
        property profileApplicability
      • withProfileApplicability

        public AndroidForWorkMobileAppConfiguration withProfileApplicability​(AndroidProfileApplicability profileApplicability)
        Returns an immutable copy of this with just the profileApplicability 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 Enterprise profile applicability (AndroidWorkProfile, DeviceOwner, or default (applies to both)).”

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

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class ManagedDeviceMobileAppConfiguration
      • put

        public AndroidForWorkMobileAppConfiguration put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class ManagedDeviceMobileAppConfiguration
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected