Class TargetedManagedAppProtection

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType
    Direct Known Subclasses:
    AndroidManagedAppProtection, IosManagedAppProtection

    public class TargetedManagedAppProtection
    extends ManagedAppProtection
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Policy used to configure detailed management settings targeted to specific security groups”
    • Constructor Detail

      • TargetedManagedAppProtection

        protected TargetedManagedAppProtection()
    • Method Detail

      • 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 ManagedAppProtection
      • postInject

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

        public Optional<Boolean> getIsAssigned()
        “Indicates if the policy is deployed to any inclusion groups or not.”
        Returns:
        property isAssigned
      • withIsAssigned

        public TargetedManagedAppProtection withIsAssigned​(Boolean isAssigned)
        Returns an immutable copy of this with just the isAssigned 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.

        “Indicates if the policy is deployed to any inclusion groups or not.”

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

        public TargetedManagedAppProtection withAssignments​(List<TargetedManagedAppPolicyAssignment> assignments)
        Returns an immutable copy of this with just the assignments 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.

        “Navigation property to list of inclusion and exclusion groups to which the policy is deployed.”

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

        public TargetedManagedAppProtection patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class ManagedAppProtection
        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 TargetedManagedAppProtection 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 ManagedAppProtection
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected