Class RestrictedAppsViolation

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

    public class RestrictedAppsViolation
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Violation of restricted apps configuration profile per device per user”
    • Constructor Detail

      • RestrictedAppsViolation

        protected RestrictedAppsViolation()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderRestrictedAppsViolation

        public static RestrictedAppsViolation.Builder builderRestrictedAppsViolation()
        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 Entity
      • postInject

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

        public Optional<String> getDeviceConfigurationId()
        “Device configuration profile unique identifier, must be Guid”
        Returns:
        property deviceConfigurationId
      • withDeviceConfigurationId

        public RestrictedAppsViolation withDeviceConfigurationId​(String deviceConfigurationId)
        Returns an immutable copy of this with just the deviceConfigurationId 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.

        “Device configuration profile unique identifier, must be Guid”

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

        public Optional<String> getDeviceConfigurationName()
        “Device configuration profile name”
        Returns:
        property deviceConfigurationName
      • withDeviceConfigurationName

        public RestrictedAppsViolation withDeviceConfigurationName​(String deviceConfigurationName)
        Returns an immutable copy of this with just the deviceConfigurationName 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.

        “Device configuration profile name”

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

        public Optional<String> getDeviceName()
        “Device name”
        Returns:
        property deviceName
      • withDeviceName

        public RestrictedAppsViolation withDeviceName​(String deviceName)
        Returns an immutable copy of this with just the deviceName 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.

        “Device name”

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

        public Optional<String> getManagedDeviceId()
        “Managed device unique identifier, must be Guid”
        Returns:
        property managedDeviceId
      • withManagedDeviceId

        public RestrictedAppsViolation withManagedDeviceId​(String managedDeviceId)
        Returns an immutable copy of this with just the managedDeviceId 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.

        “Managed device unique identifier, must be Guid”

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

        public RestrictedAppsViolation withPlatformType​(PolicyPlatformType platformType)
        Returns an immutable copy of this with just the platformType 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.

        “Platform type”

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

        public com.github.davidmoten.odata.client.CollectionPage<ManagedDeviceReportedApp> getRestrictedApps()
        “List of violated restricted apps”
        Returns:
        property restrictedApps
      • withRestrictedApps

        public RestrictedAppsViolation withRestrictedApps​(List<ManagedDeviceReportedApp> restrictedApps)
        Returns an immutable copy of this with just the restrictedApps 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 violated restricted apps”

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

        public com.github.davidmoten.odata.client.CollectionPage<ManagedDeviceReportedApp> getRestrictedApps​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “List of violated restricted apps”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property restrictedApps
      • getRestrictedAppsState

        public Optional<RestrictedAppsState> getRestrictedAppsState()
        “Restricted apps state”
        Returns:
        property restrictedAppsState
      • withRestrictedAppsState

        public RestrictedAppsViolation withRestrictedAppsState​(RestrictedAppsState restrictedAppsState)
        Returns an immutable copy of this with just the restrictedAppsState 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.

        “Restricted apps state”

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

        public Optional<String> getUserId()
        “User unique identifier, must be Guid”
        Returns:
        property userId
      • withUserId

        public RestrictedAppsViolation withUserId​(String userId)
        Returns an immutable copy of this with just the userId 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.

        “User unique identifier, must be Guid”

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

        public Optional<String> getUserName()
        “User name”
        Returns:
        property userName
      • withUserName

        public RestrictedAppsViolation withUserName​(String userName)
        Returns an immutable copy of this with just the userName 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.

        “User name”

        Parameters:
        userName - new value of userName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the userName 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 Entity
      • patch

        public RestrictedAppsViolation patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public RestrictedAppsViolation 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 Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected