Class AndroidDeviceOwnerSystemUpdateFreezePeriod
- java.lang.Object
-
- odata.msgraph.client.beta.complex.AndroidDeviceOwnerSystemUpdateFreezePeriod
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class AndroidDeviceOwnerSystemUpdateFreezePeriod extends Object implements com.github.davidmoten.odata.client.ODataType
“Represents one item in the list of freeze periods for Android Device Owner system updates”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidDeviceOwnerSystemUpdateFreezePeriod.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected IntegerendDayprotected IntegerendMonthprotected StringodataTypeprotected IntegerstartDayprotected IntegerstartMonthprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedAndroidDeviceOwnerSystemUpdateFreezePeriod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidDeviceOwnerSystemUpdateFreezePeriod.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Integer>getEndDay()“The day of the end date of the freeze period.Optional<Integer>getEndMonth()“The month of the end date of the freeze period.Optional<Integer>getStartDay()“The day of the start date of the freeze period.Optional<Integer>getStartMonth()“The month of the start date of the freeze period.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()AndroidDeviceOwnerSystemUpdateFreezePeriodwithEndDay(Integer endDay)Returns an immutable copy ofthiswith just theendDayfield changed.AndroidDeviceOwnerSystemUpdateFreezePeriodwithEndMonth(Integer endMonth)Returns an immutable copy ofthiswith just theendMonthfield changed.AndroidDeviceOwnerSystemUpdateFreezePeriodwithStartDay(Integer startDay)Returns an immutable copy ofthiswith just thestartDayfield changed.AndroidDeviceOwnerSystemUpdateFreezePeriodwithStartMonth(Integer startMonth)Returns an immutable copy ofthiswith just thestartMonthfield changed.AndroidDeviceOwnerSystemUpdateFreezePeriodwithUnmappedField(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 Integer endDay
-
endMonth
protected Integer endMonth
-
startDay
protected Integer startDay
-
startMonth
protected Integer startMonth
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getEndDay
public Optional<Integer> getEndDay()
“The day of the end date of the freeze period. Valid values 1 to 31”- Returns:
- property endDay
-
withEndDay
public AndroidDeviceOwnerSystemUpdateFreezePeriod withEndDay(Integer 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.“The day of the end date of the freeze period. Valid values 1 to 31”
- Parameters:
endDay- new value ofendDayfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theendDayfield changed
-
getEndMonth
public Optional<Integer> getEndMonth()
“The month of the end date of the freeze period. Valid values 1 to 12”- Returns:
- property endMonth
-
withEndMonth
public AndroidDeviceOwnerSystemUpdateFreezePeriod withEndMonth(Integer endMonth)
Returns an immutable copy ofthiswith just theendMonthfield 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 month of the end date of the freeze period. Valid values 1 to 12”
- Parameters:
endMonth- new value ofendMonthfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theendMonthfield changed
-
getStartDay
public Optional<Integer> getStartDay()
“The day of the start date of the freeze period. Valid values 1 to 31”- Returns:
- property startDay
-
withStartDay
public AndroidDeviceOwnerSystemUpdateFreezePeriod withStartDay(Integer 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.“The day of the start date of the freeze period. Valid values 1 to 31”
- Parameters:
startDay- new value ofstartDayfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestartDayfield changed
-
getStartMonth
public Optional<Integer> getStartMonth()
“The month of the start date of the freeze period. Valid values 1 to 12”- Returns:
- property startMonth
-
withStartMonth
public AndroidDeviceOwnerSystemUpdateFreezePeriod withStartMonth(Integer startMonth)
Returns an immutable copy ofthiswith just thestartMonthfield 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 month of the start date of the freeze period. Valid values 1 to 12”
- Parameters:
startMonth- new value ofstartMonthfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestartMonthfield changed
-
withUnmappedField
public AndroidDeviceOwnerSystemUpdateFreezePeriod 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 AndroidDeviceOwnerSystemUpdateFreezePeriod.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
-
-