Class TargetedManagedAppConfiguration

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

    public class TargetedManagedAppConfiguration
    extends ManagedAppConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Configuration used to deliver a set of custom settings as-is to all users in the targeted security group”
    • Constructor Detail

      • TargetedManagedAppConfiguration

        protected TargetedManagedAppConfiguration()
    • Method Detail

      • builderTargetedManagedAppConfiguration

        public static TargetedManagedAppConfiguration.Builder builderTargetedManagedAppConfiguration()
        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 ManagedAppConfiguration
      • postInject

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

        public Optional<Integer> getDeployedAppCount()
        “Count of apps to which the current policy is deployed.”
        Returns:
        property deployedAppCount
      • withDeployedAppCount

        public TargetedManagedAppConfiguration withDeployedAppCount​(Integer deployedAppCount)
        Returns an immutable copy of this with just the deployedAppCount 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.

        “Count of apps to which the current policy is deployed.”

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

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

        public TargetedManagedAppConfiguration 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
      • getDeploymentSummary

        public ManagedAppPolicyDeploymentSummaryRequest getDeploymentSummary()
        “Navigation property to deployment summary of the configuration.”
        Returns:
        navigational property deploymentSummary
      • withApps

        public TargetedManagedAppConfiguration withApps​(List<ManagedMobileApp> apps)
        Returns an immutable copy of this with just the apps 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 apps to which the policy is deployed.”

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

        public TargetedManagedAppConfiguration 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
      • withDeploymentSummary

        public TargetedManagedAppConfiguration withDeploymentSummary​(ManagedAppPolicyDeploymentSummary deploymentSummary)
        Returns an immutable copy of this with just the deploymentSummary 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 deployment summary of the configuration.”

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

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