Class DeviceManagementExchangeOnPremisesPolicy

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

    public class DeviceManagementExchangeOnPremisesPolicy
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Singleton entity which represents the Exchange OnPremises policy configured for a tenant.”
    • Constructor Detail

      • DeviceManagementExchangeOnPremisesPolicy

        protected DeviceManagementExchangeOnPremisesPolicy()
    • Method Detail

      • odataTypeName

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

        public static DeviceManagementExchangeOnPremisesPolicy.Builder builderDeviceManagementExchangeOnPremisesPolicy()
        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
      • getAccessRules

        public com.github.davidmoten.odata.client.CollectionPage<DeviceManagementExchangeAccessRule> getAccessRules()
        “The list of device access rules in Exchange. The access rules apply globally to the entire Exchange organization”
        Returns:
        property accessRules
      • withAccessRules

        public DeviceManagementExchangeOnPremisesPolicy withAccessRules​(List<DeviceManagementExchangeAccessRule> accessRules)
        Returns an immutable copy of this with just the accessRules 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.

        “The list of device access rules in Exchange. The access rules apply globally to the entire Exchange organization”

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

        public com.github.davidmoten.odata.client.CollectionPage<DeviceManagementExchangeAccessRule> getAccessRules​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The list of device access rules in Exchange. The access rules apply globally to the entire Exchange organization”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property accessRules
      • getDefaultAccessLevel

        public Optional<DeviceManagementExchangeAccessLevel> getDefaultAccessLevel()
        “Default access state in Exchange. This rule applies globally to the entire Exchange organization”
        Returns:
        property defaultAccessLevel
      • withDefaultAccessLevel

        public DeviceManagementExchangeOnPremisesPolicy withDefaultAccessLevel​(DeviceManagementExchangeAccessLevel defaultAccessLevel)
        Returns an immutable copy of this with just the defaultAccessLevel 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.

        “Default access state in Exchange. This rule applies globally to the entire Exchange organization”

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

        public com.github.davidmoten.odata.client.CollectionPage<DeviceManagementExchangeDeviceClass> getKnownDeviceClasses()
        “The list of device classes known to Exchange”
        Returns:
        property knownDeviceClasses
      • withKnownDeviceClasses

        public DeviceManagementExchangeOnPremisesPolicy withKnownDeviceClasses​(List<DeviceManagementExchangeDeviceClass> knownDeviceClasses)
        Returns an immutable copy of this with just the knownDeviceClasses 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.

        “The list of device classes known to Exchange”

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

        public com.github.davidmoten.odata.client.CollectionPage<DeviceManagementExchangeDeviceClass> getKnownDeviceClasses​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The list of device classes known to Exchange”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property knownDeviceClasses
      • getNotificationContent

        public Optional<byte[]> getNotificationContent()
        “Notification text that will be sent to users quarantined by this policy. This is UTF8 encoded byte array HTML.”
        Returns:
        property notificationContent
      • withNotificationContent

        public DeviceManagementExchangeOnPremisesPolicy withNotificationContent​(byte[] notificationContent)
        Returns an immutable copy of this with just the notificationContent 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.

        “Notification text that will be sent to users quarantined by this policy. This is UTF8 encoded byte array HTML.”

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

        public OnPremisesConditionalAccessSettingsRequest getConditionalAccessSettings()
        “The Exchange on premises conditional access settings. On premises conditional access will require devices to be both enrolled and compliant for mail access”
        Returns:
        navigational property conditionalAccessSettings
      • 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 DeviceManagementExchangeOnPremisesPolicy 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 DeviceManagementExchangeOnPremisesPolicy 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