Class MacOSSoftwareUpdateConfiguration

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

    public class MacOSSoftwareUpdateConfiguration
    extends DeviceConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “MacOS Software Update Configuration”
    • Constructor Detail

      • MacOSSoftwareUpdateConfiguration

        protected MacOSSoftwareUpdateConfiguration()
    • Method Detail

      • odataTypeName

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

        public static MacOSSoftwareUpdateConfiguration.Builder builderMacOSSoftwareUpdateConfiguration()
        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
      • getAllOtherUpdateBehavior

        public Optional<MacOSSoftwareUpdateBehavior> getAllOtherUpdateBehavior()
        “Update behavior for all other updates.”
        Returns:
        property allOtherUpdateBehavior
      • withAllOtherUpdateBehavior

        public MacOSSoftwareUpdateConfiguration withAllOtherUpdateBehavior​(MacOSSoftwareUpdateBehavior allOtherUpdateBehavior)
        Returns an immutable copy of this with just the allOtherUpdateBehavior 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.

        “Update behavior for all other updates.”

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

        public Optional<MacOSSoftwareUpdateBehavior> getConfigDataUpdateBehavior()
        “Update behavior for configuration data file updates.”
        Returns:
        property configDataUpdateBehavior
      • withConfigDataUpdateBehavior

        public MacOSSoftwareUpdateConfiguration withConfigDataUpdateBehavior​(MacOSSoftwareUpdateBehavior configDataUpdateBehavior)
        Returns an immutable copy of this with just the configDataUpdateBehavior 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.

        “Update behavior for configuration data file updates.”

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

        public Optional<MacOSSoftwareUpdateBehavior> getCriticalUpdateBehavior()
        “Update behavior for critical updates.”
        Returns:
        property criticalUpdateBehavior
      • withCriticalUpdateBehavior

        public MacOSSoftwareUpdateConfiguration withCriticalUpdateBehavior​(MacOSSoftwareUpdateBehavior criticalUpdateBehavior)
        Returns an immutable copy of this with just the criticalUpdateBehavior 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.

        “Update behavior for critical updates.”

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

        public com.github.davidmoten.odata.client.CollectionPage<CustomUpdateTimeWindow> getCustomUpdateTimeWindows()
        “Custom Time windows when updates will be allowed or blocked. This collection can contain a maximum of 20 elements.”
        Returns:
        property customUpdateTimeWindows
      • withCustomUpdateTimeWindows

        public MacOSSoftwareUpdateConfiguration withCustomUpdateTimeWindows​(List<CustomUpdateTimeWindow> customUpdateTimeWindows)
        Returns an immutable copy of this with just the customUpdateTimeWindows 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.

        “Custom Time windows when updates will be allowed or blocked. This collection can contain a maximum of 20 elements.”

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

        public com.github.davidmoten.odata.client.CollectionPage<CustomUpdateTimeWindow> getCustomUpdateTimeWindows​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Custom Time windows when updates will be allowed or blocked. This collection can contain a maximum of 20 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property customUpdateTimeWindows
      • getFirmwareUpdateBehavior

        public Optional<MacOSSoftwareUpdateBehavior> getFirmwareUpdateBehavior()
        “Update behavior for firmware updates.”
        Returns:
        property firmwareUpdateBehavior
      • withFirmwareUpdateBehavior

        public MacOSSoftwareUpdateConfiguration withFirmwareUpdateBehavior​(MacOSSoftwareUpdateBehavior firmwareUpdateBehavior)
        Returns an immutable copy of this with just the firmwareUpdateBehavior 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.

        “Update behavior for firmware updates.”

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

        public MacOSSoftwareUpdateConfiguration withUpdateScheduleType​(MacOSSoftwareUpdateScheduleType updateScheduleType)
        Returns an immutable copy of this with just the updateScheduleType 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.

        “Update schedule type”

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

        public Optional<Integer> getUpdateTimeWindowUtcOffsetInMinutes()
        “Minutes indicating UTC offset for each update time window”
        Returns:
        property updateTimeWindowUtcOffsetInMinutes
      • withUpdateTimeWindowUtcOffsetInMinutes

        public MacOSSoftwareUpdateConfiguration withUpdateTimeWindowUtcOffsetInMinutes​(Integer updateTimeWindowUtcOffsetInMinutes)
        Returns an immutable copy of this with just the updateTimeWindowUtcOffsetInMinutes 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.

        “Minutes indicating UTC offset for each update time window”

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