Class WindowsUpdateForBusinessConfiguration

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

    public class WindowsUpdateForBusinessConfiguration
    extends DeviceConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Windows Update for business configuration.”
    • Field Detail

      • driversExcluded

        protected Boolean driversExcluded
      • featureUpdatesDeferralPeriodInDays

        protected Integer featureUpdatesDeferralPeriodInDays
      • featureUpdatesPaused

        protected Boolean featureUpdatesPaused
      • featureUpdatesPauseExpiryDateTime

        protected OffsetDateTime featureUpdatesPauseExpiryDateTime
      • microsoftUpdateServiceAllowed

        protected Boolean microsoftUpdateServiceAllowed
      • qualityUpdatesDeferralPeriodInDays

        protected Integer qualityUpdatesDeferralPeriodInDays
      • qualityUpdatesPaused

        protected Boolean qualityUpdatesPaused
      • qualityUpdatesPauseExpiryDateTime

        protected OffsetDateTime qualityUpdatesPauseExpiryDateTime
    • Constructor Detail

      • WindowsUpdateForBusinessConfiguration

        protected WindowsUpdateForBusinessConfiguration()
    • Method Detail

      • odataTypeName

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

        public static WindowsUpdateForBusinessConfiguration.Builder builderWindowsUpdateForBusinessConfiguration()
        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 DeviceConfiguration
      • postInject

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

        public Optional<AutomaticUpdateMode> getAutomaticUpdateMode()
        “Automatic update mode.”
        Returns:
        property automaticUpdateMode
      • withAutomaticUpdateMode

        public WindowsUpdateForBusinessConfiguration withAutomaticUpdateMode​(AutomaticUpdateMode automaticUpdateMode)
        Returns an immutable copy of this with just the automaticUpdateMode 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.

        “Automatic update mode.”

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

        public Optional<WindowsUpdateType> getBusinessReadyUpdatesOnly()
        “Determines which branch devices will receive their updates from”
        Returns:
        property businessReadyUpdatesOnly
      • withBusinessReadyUpdatesOnly

        public WindowsUpdateForBusinessConfiguration withBusinessReadyUpdatesOnly​(WindowsUpdateType businessReadyUpdatesOnly)
        Returns an immutable copy of this with just the businessReadyUpdatesOnly 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.

        “Determines which branch devices will receive their updates from”

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

        public WindowsUpdateForBusinessConfiguration withDeliveryOptimizationMode​(WindowsDeliveryOptimizationMode deliveryOptimizationMode)
        Returns an immutable copy of this with just the deliveryOptimizationMode 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.

        “Delivery Optimization Mode”

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

        public Optional<Boolean> getDriversExcluded()
        “Exclude Windows update Drivers”
        Returns:
        property driversExcluded
      • withDriversExcluded

        public WindowsUpdateForBusinessConfiguration withDriversExcluded​(Boolean driversExcluded)
        Returns an immutable copy of this with just the driversExcluded 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.

        “Exclude Windows update Drivers”

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

        public Optional<Integer> getFeatureUpdatesDeferralPeriodInDays()
        “Defer Feature Updates by these many days”
        Returns:
        property featureUpdatesDeferralPeriodInDays
      • withFeatureUpdatesDeferralPeriodInDays

        public WindowsUpdateForBusinessConfiguration withFeatureUpdatesDeferralPeriodInDays​(Integer featureUpdatesDeferralPeriodInDays)
        Returns an immutable copy of this with just the featureUpdatesDeferralPeriodInDays 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.

        “Defer Feature Updates by these many days”

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

        public Optional<Boolean> getFeatureUpdatesPaused()
        “Pause Feature Updates”
        Returns:
        property featureUpdatesPaused
      • withFeatureUpdatesPaused

        public WindowsUpdateForBusinessConfiguration withFeatureUpdatesPaused​(Boolean featureUpdatesPaused)
        Returns an immutable copy of this with just the featureUpdatesPaused 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.

        “Pause Feature Updates”

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

        public Optional<OffsetDateTime> getFeatureUpdatesPauseExpiryDateTime()
        “Feature Updates Pause Expiry datetime”
        Returns:
        property featureUpdatesPauseExpiryDateTime
      • withFeatureUpdatesPauseExpiryDateTime

        public WindowsUpdateForBusinessConfiguration withFeatureUpdatesPauseExpiryDateTime​(OffsetDateTime featureUpdatesPauseExpiryDateTime)
        Returns an immutable copy of this with just the featureUpdatesPauseExpiryDateTime 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.

        “Feature Updates Pause Expiry datetime”

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

        public WindowsUpdateForBusinessConfiguration withInstallationSchedule​(WindowsUpdateInstallScheduleType installationSchedule)
        Returns an immutable copy of this with just the installationSchedule 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.

        “Installation schedule”

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

        public Optional<Boolean> getMicrosoftUpdateServiceAllowed()
        “Allow Microsoft Update Service”
        Returns:
        property microsoftUpdateServiceAllowed
      • withMicrosoftUpdateServiceAllowed

        public WindowsUpdateForBusinessConfiguration withMicrosoftUpdateServiceAllowed​(Boolean microsoftUpdateServiceAllowed)
        Returns an immutable copy of this with just the microsoftUpdateServiceAllowed 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.

        “Allow Microsoft Update Service”

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

        public Optional<PrereleaseFeatures> getPrereleaseFeatures()
        “The pre-release features.”
        Returns:
        property prereleaseFeatures
      • withPrereleaseFeatures

        public WindowsUpdateForBusinessConfiguration withPrereleaseFeatures​(PrereleaseFeatures prereleaseFeatures)
        Returns an immutable copy of this with just the prereleaseFeatures 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 pre-release features.”

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

        public Optional<Integer> getQualityUpdatesDeferralPeriodInDays()
        “Defer Quality Updates by these many days”
        Returns:
        property qualityUpdatesDeferralPeriodInDays
      • withQualityUpdatesDeferralPeriodInDays

        public WindowsUpdateForBusinessConfiguration withQualityUpdatesDeferralPeriodInDays​(Integer qualityUpdatesDeferralPeriodInDays)
        Returns an immutable copy of this with just the qualityUpdatesDeferralPeriodInDays 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.

        “Defer Quality Updates by these many days”

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

        public Optional<Boolean> getQualityUpdatesPaused()
        “Pause Quality Updates”
        Returns:
        property qualityUpdatesPaused
      • withQualityUpdatesPaused

        public WindowsUpdateForBusinessConfiguration withQualityUpdatesPaused​(Boolean qualityUpdatesPaused)
        Returns an immutable copy of this with just the qualityUpdatesPaused 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.

        “Pause Quality Updates”

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

        public Optional<OffsetDateTime> getQualityUpdatesPauseExpiryDateTime()
        “Quality Updates Pause Expiry datetime”
        Returns:
        property qualityUpdatesPauseExpiryDateTime
      • withQualityUpdatesPauseExpiryDateTime

        public WindowsUpdateForBusinessConfiguration withQualityUpdatesPauseExpiryDateTime​(OffsetDateTime qualityUpdatesPauseExpiryDateTime)
        Returns an immutable copy of this with just the qualityUpdatesPauseExpiryDateTime 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.

        “Quality Updates Pause Expiry datetime”

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

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