Package odata.msgraph.client.beta.entity
Class MacOSSoftwareUpdateConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.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”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMacOSSoftwareUpdateConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected MacOSSoftwareUpdateBehaviorallOtherUpdateBehaviorprotected MacOSSoftwareUpdateBehaviorconfigDataUpdateBehaviorprotected MacOSSoftwareUpdateBehaviorcriticalUpdateBehaviorprotected List<CustomUpdateTimeWindow>customUpdateTimeWindowsprotected StringcustomUpdateTimeWindowsNextLinkprotected MacOSSoftwareUpdateBehaviorfirmwareUpdateBehaviorprotected MacOSSoftwareUpdateScheduleTypeupdateScheduleTypeprotected IntegerupdateTimeWindowUtcOffsetInMinutes-
Fields inherited from class odata.msgraph.client.beta.entity.DeviceConfiguration
createdDateTime, description, deviceManagementApplicabilityRuleDeviceMode, deviceManagementApplicabilityRuleOsEdition, deviceManagementApplicabilityRuleOsVersion, displayName, lastModifiedDateTime, roleScopeTagIds, roleScopeTagIdsNextLink, supportsScopeTags, version
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMacOSSoftwareUpdateConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MacOSSoftwareUpdateConfiguration.BuilderbuilderMacOSSoftwareUpdateConfiguration()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<MacOSSoftwareUpdateBehavior>getAllOtherUpdateBehavior()“Update behavior for all other updates.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<MacOSSoftwareUpdateBehavior>getConfigDataUpdateBehavior()“Update behavior for configuration data file updates.”Optional<MacOSSoftwareUpdateBehavior>getCriticalUpdateBehavior()“Update behavior for critical updates.”com.github.davidmoten.odata.client.CollectionPage<CustomUpdateTimeWindow>getCustomUpdateTimeWindows()“Custom Time windows when updates will be allowed or blocked.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.Optional<MacOSSoftwareUpdateBehavior>getFirmwareUpdateBehavior()“Update behavior for firmware updates.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<MacOSSoftwareUpdateScheduleType>getUpdateScheduleType()“Update schedule type”Optional<Integer>getUpdateTimeWindowUtcOffsetInMinutes()“Minutes indicating UTC offset for each update time window”StringodataTypeName()MacOSSoftwareUpdateConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MacOSSoftwareUpdateConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MacOSSoftwareUpdateConfigurationwithAllOtherUpdateBehavior(MacOSSoftwareUpdateBehavior allOtherUpdateBehavior)Returns an immutable copy ofthiswith just theallOtherUpdateBehaviorfield changed.MacOSSoftwareUpdateConfigurationwithConfigDataUpdateBehavior(MacOSSoftwareUpdateBehavior configDataUpdateBehavior)Returns an immutable copy ofthiswith just theconfigDataUpdateBehaviorfield changed.MacOSSoftwareUpdateConfigurationwithCriticalUpdateBehavior(MacOSSoftwareUpdateBehavior criticalUpdateBehavior)Returns an immutable copy ofthiswith just thecriticalUpdateBehaviorfield changed.MacOSSoftwareUpdateConfigurationwithCustomUpdateTimeWindows(List<CustomUpdateTimeWindow> customUpdateTimeWindows)Returns an immutable copy ofthiswith just thecustomUpdateTimeWindowsfield changed.MacOSSoftwareUpdateConfigurationwithFirmwareUpdateBehavior(MacOSSoftwareUpdateBehavior firmwareUpdateBehavior)Returns an immutable copy ofthiswith just thefirmwareUpdateBehaviorfield changed.MacOSSoftwareUpdateConfigurationwithUnmappedField(String name, String value)MacOSSoftwareUpdateConfigurationwithUpdateScheduleType(MacOSSoftwareUpdateScheduleType updateScheduleType)Returns an immutable copy ofthiswith just theupdateScheduleTypefield changed.MacOSSoftwareUpdateConfigurationwithUpdateTimeWindowUtcOffsetInMinutes(Integer updateTimeWindowUtcOffsetInMinutes)Returns an immutable copy ofthiswith just theupdateTimeWindowUtcOffsetInMinutesfield changed.-
Methods inherited from class odata.msgraph.client.beta.entity.DeviceConfiguration
assign, assignedAccessMultiModeProfiles, getAssignments, getCreatedDateTime, getDescription, getDeviceManagementApplicabilityRuleDeviceMode, getDeviceManagementApplicabilityRuleOsEdition, getDeviceManagementApplicabilityRuleOsVersion, getDeviceSettingStateSummaries, getDeviceStatuses, getDeviceStatusOverview, getDisplayName, getGroupAssignments, getLastModifiedDateTime, getOmaSettingPlainTextValue, getRoleScopeTagIds, getRoleScopeTagIds, getSupportsScopeTags, getUserStatuses, getUserStatusOverview, getVersion, windowsPrivacyAccessControls, withCreatedDateTime, withDescription, withDeviceManagementApplicabilityRuleDeviceMode, withDeviceManagementApplicabilityRuleOsEdition, withDeviceManagementApplicabilityRuleOsVersion, withDisplayName, withLastModifiedDateTime, withRoleScopeTagIds, withSupportsScopeTags, withVersion
-
-
-
-
Field Detail
-
allOtherUpdateBehavior
protected MacOSSoftwareUpdateBehavior allOtherUpdateBehavior
-
configDataUpdateBehavior
protected MacOSSoftwareUpdateBehavior configDataUpdateBehavior
-
criticalUpdateBehavior
protected MacOSSoftwareUpdateBehavior criticalUpdateBehavior
-
customUpdateTimeWindows
protected List<CustomUpdateTimeWindow> customUpdateTimeWindows
-
customUpdateTimeWindowsNextLink
protected String customUpdateTimeWindowsNextLink
-
firmwareUpdateBehavior
protected MacOSSoftwareUpdateBehavior firmwareUpdateBehavior
-
updateScheduleType
protected MacOSSoftwareUpdateScheduleType updateScheduleType
-
updateTimeWindowUtcOffsetInMinutes
protected Integer updateTimeWindowUtcOffsetInMinutes
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceConfiguration
-
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classDeviceConfiguration
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceConfiguration
-
getAllOtherUpdateBehavior
public Optional<MacOSSoftwareUpdateBehavior> getAllOtherUpdateBehavior()
“Update behavior for all other updates.”- Returns:
- property allOtherUpdateBehavior
-
withAllOtherUpdateBehavior
public MacOSSoftwareUpdateConfiguration withAllOtherUpdateBehavior(MacOSSoftwareUpdateBehavior allOtherUpdateBehavior)
Returns an immutable copy ofthiswith just theallOtherUpdateBehaviorfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofallOtherUpdateBehaviorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theallOtherUpdateBehaviorfield 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 ofthiswith just theconfigDataUpdateBehaviorfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofconfigDataUpdateBehaviorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theconfigDataUpdateBehaviorfield changed
-
getCriticalUpdateBehavior
public Optional<MacOSSoftwareUpdateBehavior> getCriticalUpdateBehavior()
“Update behavior for critical updates.”- Returns:
- property criticalUpdateBehavior
-
withCriticalUpdateBehavior
public MacOSSoftwareUpdateConfiguration withCriticalUpdateBehavior(MacOSSoftwareUpdateBehavior criticalUpdateBehavior)
Returns an immutable copy ofthiswith just thecriticalUpdateBehaviorfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Update behavior for critical updates.”
- Parameters:
criticalUpdateBehavior- new value ofcriticalUpdateBehaviorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecriticalUpdateBehaviorfield 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 ofthiswith just thecustomUpdateTimeWindowsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofcustomUpdateTimeWindowsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecustomUpdateTimeWindowsfield 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 ofthiswith just thefirmwareUpdateBehaviorfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Update behavior for firmware updates.”
- Parameters:
firmwareUpdateBehavior- new value offirmwareUpdateBehaviorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefirmwareUpdateBehaviorfield changed
-
getUpdateScheduleType
public Optional<MacOSSoftwareUpdateScheduleType> getUpdateScheduleType()
“Update schedule type”- Returns:
- property updateScheduleType
-
withUpdateScheduleType
public MacOSSoftwareUpdateConfiguration withUpdateScheduleType(MacOSSoftwareUpdateScheduleType updateScheduleType)
Returns an immutable copy ofthiswith just theupdateScheduleTypefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Update schedule type”
- Parameters:
updateScheduleType- new value ofupdateScheduleTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theupdateScheduleTypefield 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 ofthiswith just theupdateTimeWindowUtcOffsetInMinutesfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofupdateTimeWindowUtcOffsetInMinutesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theupdateTimeWindowUtcOffsetInMinutesfield changed
-
withUnmappedField
public MacOSSoftwareUpdateConfiguration withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceConfiguration
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceConfiguration
-
patch
public MacOSSoftwareUpdateConfiguration patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classDeviceConfiguration- Returns:
- a copy of
thiswith 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 ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classDeviceConfiguration- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classDeviceConfiguration
-
-