Class CustomUpdateTimeWindow
- java.lang.Object
-
- odata.msgraph.client.beta.complex.CustomUpdateTimeWindow
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class CustomUpdateTimeWindow extends Object implements com.github.davidmoten.odata.client.ODataType
“Custom update time window”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCustomUpdateTimeWindow.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected DayOfWeekendDayprotected LocalTimeendTimeprotected StringodataTypeprotected DayOfWeekstartDayprotected LocalTimestartTimeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedCustomUpdateTimeWindow()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomUpdateTimeWindow.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<DayOfWeek>getEndDay()“End day of the time window”Optional<LocalTime>getEndTime()“End time of the time window”Optional<DayOfWeek>getStartDay()“Start day of the time window”Optional<LocalTime>getStartTime()“Start time of the time window”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()CustomUpdateTimeWindowwithEndDay(DayOfWeek endDay)Returns an immutable copy ofthiswith just theendDayfield changed.CustomUpdateTimeWindowwithEndTime(LocalTime endTime)Returns an immutable copy ofthiswith just theendTimefield changed.CustomUpdateTimeWindowwithStartDay(DayOfWeek startDay)Returns an immutable copy ofthiswith just thestartDayfield changed.CustomUpdateTimeWindowwithStartTime(LocalTime startTime)Returns an immutable copy ofthiswith just thestartTimefield changed.CustomUpdateTimeWindowwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
endDay
protected DayOfWeek endDay
-
endTime
protected LocalTime endTime
-
startDay
protected DayOfWeek startDay
-
startTime
protected LocalTime startTime
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getEndDay
public Optional<DayOfWeek> getEndDay()
“End day of the time window”- Returns:
- property endDay
-
withEndDay
public CustomUpdateTimeWindow withEndDay(DayOfWeek endDay)
Returns an immutable copy ofthiswith just theendDayfield 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.“End day of the time window”
- Parameters:
endDay- new value ofendDayfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theendDayfield changed
-
getEndTime
public Optional<LocalTime> getEndTime()
“End time of the time window”- Returns:
- property endTime
-
withEndTime
public CustomUpdateTimeWindow withEndTime(LocalTime endTime)
Returns an immutable copy ofthiswith just theendTimefield 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.“End time of the time window”
- Parameters:
endTime- new value ofendTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theendTimefield changed
-
getStartDay
public Optional<DayOfWeek> getStartDay()
“Start day of the time window”- Returns:
- property startDay
-
withStartDay
public CustomUpdateTimeWindow withStartDay(DayOfWeek startDay)
Returns an immutable copy ofthiswith just thestartDayfield 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.“Start day of the time window”
- Parameters:
startDay- new value ofstartDayfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestartDayfield changed
-
getStartTime
public Optional<LocalTime> getStartTime()
“Start time of the time window”- Returns:
- property startTime
-
withStartTime
public CustomUpdateTimeWindow withStartTime(LocalTime startTime)
Returns an immutable copy ofthiswith just thestartTimefield 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.“Start time of the time window”
- Parameters:
startTime- new value ofstartTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestartTimefield changed
-
withUnmappedField
public CustomUpdateTimeWindow withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static CustomUpdateTimeWindow.Builder builder()
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
-
-