Class DeviceHealthScriptRunOnceSchedule
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceHealthScriptRunSchedule
-
- odata.msgraph.client.beta.complex.DeviceHealthScriptTimeSchedule
-
- odata.msgraph.client.beta.complex.DeviceHealthScriptRunOnceSchedule
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceHealthScriptRunOnceSchedule extends DeviceHealthScriptTimeSchedule implements com.github.davidmoten.odata.client.ODataType
“Device health script run once schedule.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceHealthScriptRunOnceSchedule.Builder
-
Field Summary
Fields Modifier and Type Field Description protected LocalDatedate-
Fields inherited from class odata.msgraph.client.beta.complex.DeviceHealthScriptTimeSchedule
time, useUtc
-
Fields inherited from class odata.msgraph.client.beta.complex.DeviceHealthScriptRunSchedule
contextPath, interval, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceHealthScriptRunOnceSchedule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceHealthScriptRunOnceSchedule.BuilderbuilderDeviceHealthScriptRunOnceSchedule()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<LocalDate>getDate()“The date the script is scheduled to run.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceHealthScriptRunOnceSchedulewithDate(LocalDate date)Returns an immutable copy ofthiswith just thedatefield changed.DeviceHealthScriptRunOnceSchedulewithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.complex.DeviceHealthScriptTimeSchedule
getTime, getUseUtc, withTime, withUseUtc
-
Methods inherited from class odata.msgraph.client.beta.complex.DeviceHealthScriptRunSchedule
getInterval, withInterval
-
-
-
-
Field Detail
-
date
protected LocalDate date
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceHealthScriptTimeSchedule
-
getDate
public Optional<LocalDate> getDate()
“The date the script is scheduled to run. This collection can contain a maximum of 20 elements.”- Returns:
- property date
-
withDate
public DeviceHealthScriptRunOnceSchedule withDate(LocalDate date)
Returns an immutable copy ofthiswith just thedatefield 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.“The date the script is scheduled to run. This collection can contain a maximum of 20 elements.”
- Parameters:
date- new value ofdatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedatefield changed
-
withUnmappedField
public DeviceHealthScriptRunOnceSchedule withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceHealthScriptTimeSchedule
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceHealthScriptTimeSchedule
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceHealthScriptTimeSchedule
-
builderDeviceHealthScriptRunOnceSchedule
public static DeviceHealthScriptRunOnceSchedule.Builder builderDeviceHealthScriptRunOnceSchedule()
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
-
toString
public String toString()
- Overrides:
toStringin classDeviceHealthScriptTimeSchedule
-
-