Package odata.msgraph.client.beta.entity
Class IosUpdateConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.IosUpdateConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class IosUpdateConfiguration extends DeviceConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“IOS Update Configuration, allows you to configure time window within week to install iOS updates”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIosUpdateConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected LocalTimeactiveHoursEndprotected LocalTimeactiveHoursStartprotected List<CustomUpdateTimeWindow>customUpdateTimeWindowsprotected StringcustomUpdateTimeWindowsNextLinkprotected StringdesiredOsVersionprotected IntegerenforcedSoftwareUpdateDelayInDaysprotected BooleanisEnabledprotected List<DayOfWeek>scheduledInstallDaysprotected StringscheduledInstallDaysNextLinkprotected IosSoftwareUpdateScheduleTypeupdateScheduleTypeprotected IntegerutcTimeOffsetInMinutes-
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 protectedIosUpdateConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IosUpdateConfiguration.BuilderbuilderIosUpdateConfiguration()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<LocalTime>getActiveHoursEnd()“Active Hours End (active hours mean the time window when updates install should not happen)”Optional<LocalTime>getActiveHoursStart()“Active Hours Start (active hours mean the time window when updates install should not happen)”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()com.github.davidmoten.odata.client.CollectionPage<CustomUpdateTimeWindow>getCustomUpdateTimeWindows()“If update schedule type is set to use time window scheduling, custom time windows when updates will be scheduled.com.github.davidmoten.odata.client.CollectionPage<CustomUpdateTimeWindow>getCustomUpdateTimeWindows(com.github.davidmoten.odata.client.HttpRequestOptions options)“If update schedule type is set to use time window scheduling, custom time windows when updates will be scheduled.Optional<String>getDesiredOsVersion()“If left unspecified, devices will update to the latest version of the OS.”Optional<Integer>getEnforcedSoftwareUpdateDelayInDays()“Days before software updates are visible to iOS devices ranging from 0 to 90 inclusive”Optional<Boolean>getIsEnabled()“Is setting enabled in UI”com.github.davidmoten.odata.client.CollectionPage<DayOfWeek>getScheduledInstallDays()“Days in week for which active hours are configured.com.github.davidmoten.odata.client.CollectionPage<DayOfWeek>getScheduledInstallDays(com.github.davidmoten.odata.client.HttpRequestOptions options)“Days in week for which active hours are configured.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<IosSoftwareUpdateScheduleType>getUpdateScheduleType()“Update schedule type”Optional<Integer>getUtcTimeOffsetInMinutes()“UTC Time Offset indicated in minutes”StringodataTypeName()IosUpdateConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)IosUpdateConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()IosUpdateConfigurationwithActiveHoursEnd(LocalTime activeHoursEnd)Returns an immutable copy ofthiswith just theactiveHoursEndfield changed.IosUpdateConfigurationwithActiveHoursStart(LocalTime activeHoursStart)Returns an immutable copy ofthiswith just theactiveHoursStartfield changed.IosUpdateConfigurationwithCustomUpdateTimeWindows(List<CustomUpdateTimeWindow> customUpdateTimeWindows)Returns an immutable copy ofthiswith just thecustomUpdateTimeWindowsfield changed.IosUpdateConfigurationwithDesiredOsVersion(String desiredOsVersion)Returns an immutable copy ofthiswith just thedesiredOsVersionfield changed.IosUpdateConfigurationwithEnforcedSoftwareUpdateDelayInDays(Integer enforcedSoftwareUpdateDelayInDays)Returns an immutable copy ofthiswith just theenforcedSoftwareUpdateDelayInDaysfield changed.IosUpdateConfigurationwithIsEnabled(Boolean isEnabled)Returns an immutable copy ofthiswith just theisEnabledfield changed.IosUpdateConfigurationwithScheduledInstallDays(List<DayOfWeek> scheduledInstallDays)Returns an immutable copy ofthiswith just thescheduledInstallDaysfield changed.IosUpdateConfigurationwithUnmappedField(String name, String value)IosUpdateConfigurationwithUpdateScheduleType(IosSoftwareUpdateScheduleType updateScheduleType)Returns an immutable copy ofthiswith just theupdateScheduleTypefield changed.IosUpdateConfigurationwithUtcTimeOffsetInMinutes(Integer utcTimeOffsetInMinutes)Returns an immutable copy ofthiswith just theutcTimeOffsetInMinutesfield 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
-
activeHoursEnd
protected LocalTime activeHoursEnd
-
activeHoursStart
protected LocalTime activeHoursStart
-
customUpdateTimeWindows
protected List<CustomUpdateTimeWindow> customUpdateTimeWindows
-
customUpdateTimeWindowsNextLink
protected String customUpdateTimeWindowsNextLink
-
desiredOsVersion
protected String desiredOsVersion
-
enforcedSoftwareUpdateDelayInDays
protected Integer enforcedSoftwareUpdateDelayInDays
-
isEnabled
protected Boolean isEnabled
-
scheduledInstallDaysNextLink
protected String scheduledInstallDaysNextLink
-
updateScheduleType
protected IosSoftwareUpdateScheduleType updateScheduleType
-
utcTimeOffsetInMinutes
protected Integer utcTimeOffsetInMinutes
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceConfiguration
-
builderIosUpdateConfiguration
public static IosUpdateConfiguration.Builder builderIosUpdateConfiguration()
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
-
getActiveHoursEnd
public Optional<LocalTime> getActiveHoursEnd()
“Active Hours End (active hours mean the time window when updates install should not happen)”- Returns:
- property activeHoursEnd
-
withActiveHoursEnd
public IosUpdateConfiguration withActiveHoursEnd(LocalTime activeHoursEnd)
Returns an immutable copy ofthiswith just theactiveHoursEndfield 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.“Active Hours End (active hours mean the time window when updates install should not happen)”
- Parameters:
activeHoursEnd- new value ofactiveHoursEndfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactiveHoursEndfield changed
-
getActiveHoursStart
public Optional<LocalTime> getActiveHoursStart()
“Active Hours Start (active hours mean the time window when updates install should not happen)”- Returns:
- property activeHoursStart
-
withActiveHoursStart
public IosUpdateConfiguration withActiveHoursStart(LocalTime activeHoursStart)
Returns an immutable copy ofthiswith just theactiveHoursStartfield 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.“Active Hours Start (active hours mean the time window when updates install should not happen)”
- Parameters:
activeHoursStart- new value ofactiveHoursStartfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactiveHoursStartfield changed
-
getCustomUpdateTimeWindows
public com.github.davidmoten.odata.client.CollectionPage<CustomUpdateTimeWindow> getCustomUpdateTimeWindows()
“If update schedule type is set to use time window scheduling, custom time windows when updates will be scheduled. This collection can contain a maximum of 20 elements.”- Returns:
- property customUpdateTimeWindows
-
withCustomUpdateTimeWindows
public IosUpdateConfiguration 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.“If update schedule type is set to use time window scheduling, custom time windows when updates will be scheduled. 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)
“If update schedule type is set to use time window scheduling, custom time windows when updates will be scheduled. This collection can contain a maximum of 20 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property customUpdateTimeWindows
-
getDesiredOsVersion
public Optional<String> getDesiredOsVersion()
“If left unspecified, devices will update to the latest version of the OS.”- Returns:
- property desiredOsVersion
-
withDesiredOsVersion
public IosUpdateConfiguration withDesiredOsVersion(String desiredOsVersion)
Returns an immutable copy ofthiswith just thedesiredOsVersionfield 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.“If left unspecified, devices will update to the latest version of the OS.”
- Parameters:
desiredOsVersion- new value ofdesiredOsVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedesiredOsVersionfield changed
-
getEnforcedSoftwareUpdateDelayInDays
public Optional<Integer> getEnforcedSoftwareUpdateDelayInDays()
“Days before software updates are visible to iOS devices ranging from 0 to 90 inclusive”- Returns:
- property enforcedSoftwareUpdateDelayInDays
-
withEnforcedSoftwareUpdateDelayInDays
public IosUpdateConfiguration withEnforcedSoftwareUpdateDelayInDays(Integer enforcedSoftwareUpdateDelayInDays)
Returns an immutable copy ofthiswith just theenforcedSoftwareUpdateDelayInDaysfield 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.“Days before software updates are visible to iOS devices ranging from 0 to 90 inclusive”
- Parameters:
enforcedSoftwareUpdateDelayInDays- new value ofenforcedSoftwareUpdateDelayInDaysfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenforcedSoftwareUpdateDelayInDaysfield changed
-
getIsEnabled
public Optional<Boolean> getIsEnabled()
“Is setting enabled in UI”- Returns:
- property isEnabled
-
withIsEnabled
public IosUpdateConfiguration withIsEnabled(Boolean isEnabled)
Returns an immutable copy ofthiswith just theisEnabledfield 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.“Is setting enabled in UI”
- Parameters:
isEnabled- new value ofisEnabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisEnabledfield changed
-
getScheduledInstallDays
public com.github.davidmoten.odata.client.CollectionPage<DayOfWeek> getScheduledInstallDays()
“Days in week for which active hours are configured. This collection can contain a maximum of 7 elements.”- Returns:
- property scheduledInstallDays
-
withScheduledInstallDays
public IosUpdateConfiguration withScheduledInstallDays(List<DayOfWeek> scheduledInstallDays)
Returns an immutable copy ofthiswith just thescheduledInstallDaysfield 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.“Days in week for which active hours are configured. This collection can contain a maximum of 7 elements.”
- Parameters:
scheduledInstallDays- new value ofscheduledInstallDaysfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thescheduledInstallDaysfield changed
-
getScheduledInstallDays
public com.github.davidmoten.odata.client.CollectionPage<DayOfWeek> getScheduledInstallDays(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Days in week for which active hours are configured. This collection can contain a maximum of 7 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property scheduledInstallDays
-
getUpdateScheduleType
public Optional<IosSoftwareUpdateScheduleType> getUpdateScheduleType()
“Update schedule type”- Returns:
- property updateScheduleType
-
withUpdateScheduleType
public IosUpdateConfiguration withUpdateScheduleType(IosSoftwareUpdateScheduleType 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
-
getUtcTimeOffsetInMinutes
public Optional<Integer> getUtcTimeOffsetInMinutes()
“UTC Time Offset indicated in minutes”- Returns:
- property utcTimeOffsetInMinutes
-
withUtcTimeOffsetInMinutes
public IosUpdateConfiguration withUtcTimeOffsetInMinutes(Integer utcTimeOffsetInMinutes)
Returns an immutable copy ofthiswith just theutcTimeOffsetInMinutesfield 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.“UTC Time Offset indicated in minutes”
- Parameters:
utcTimeOffsetInMinutes- new value ofutcTimeOffsetInMinutesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theutcTimeOffsetInMinutesfield changed
-
withUnmappedField
public IosUpdateConfiguration 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 IosUpdateConfiguration 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 IosUpdateConfiguration 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
-
-