Class DeviceHealthScriptTimeSchedule
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceHealthScriptRunSchedule
-
- odata.msgraph.client.beta.complex.DeviceHealthScriptTimeSchedule
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
DeviceHealthScriptDailySchedule,DeviceHealthScriptRunOnceSchedule
public class DeviceHealthScriptTimeSchedule extends DeviceHealthScriptRunSchedule implements com.github.davidmoten.odata.client.ODataType
“Base type of Device health script time schedule.”
-
-
Field Summary
Fields Modifier and Type Field Description protected LocalTimetimeprotected BooleanuseUtc-
Fields inherited from class odata.msgraph.client.beta.complex.DeviceHealthScriptRunSchedule
contextPath, interval, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceHealthScriptTimeSchedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<LocalTime>getTime()“At what time the script is scheduled to run.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Boolean>getUseUtc()“Indicate if the time is Utc or client local time.”StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceHealthScriptTimeSchedulewithTime(LocalTime time)Returns an immutable copy ofthiswith just thetimefield changed.DeviceHealthScriptTimeSchedulewithUnmappedField(String name, String value)DeviceHealthScriptTimeSchedulewithUseUtc(Boolean useUtc)Returns an immutable copy ofthiswith just theuseUtcfield changed.-
Methods inherited from class odata.msgraph.client.beta.complex.DeviceHealthScriptRunSchedule
getInterval, withInterval
-
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceHealthScriptRunSchedule
-
getTime
public Optional<LocalTime> getTime()
“At what time the script is scheduled to run. This collection can contain a maximum of 20 elements.”- Returns:
- property time
-
withTime
public DeviceHealthScriptTimeSchedule withTime(LocalTime time)
Returns an immutable copy ofthiswith just thetimefield 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.“At what time the script is scheduled to run. This collection can contain a maximum of 20 elements.”
- Parameters:
time- new value oftimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetimefield changed
-
getUseUtc
public Optional<Boolean> getUseUtc()
“Indicate if the time is Utc or client local time.”- Returns:
- property useUtc
-
withUseUtc
public DeviceHealthScriptTimeSchedule withUseUtc(Boolean useUtc)
Returns an immutable copy ofthiswith just theuseUtcfield 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.“Indicate if the time is Utc or client local time.”
- Parameters:
useUtc- new value ofuseUtcfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuseUtcfield changed
-
withUnmappedField
public DeviceHealthScriptTimeSchedule withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceHealthScriptRunSchedule
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceHealthScriptRunSchedule
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceHealthScriptRunSchedule
-
toString
public String toString()
- Overrides:
toStringin classDeviceHealthScriptRunSchedule
-
-