Package odata.msgraph.client.complex
Class DeviceEnrollmentPlatformRestriction
- java.lang.Object
-
- odata.msgraph.client.complex.DeviceEnrollmentPlatformRestriction
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceEnrollmentPlatformRestriction extends Object implements com.github.davidmoten.odata.client.ODataType
“Platform specific enrollment restrictions”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceEnrollmentPlatformRestriction.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected StringodataTypeprotected StringosMaximumVersionprotected StringosMinimumVersionprotected BooleanpersonalDeviceEnrollmentBlockedprotected BooleanplatformBlockedprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceEnrollmentPlatformRestriction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceEnrollmentPlatformRestriction.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getOsMaximumVersion()“Max OS version supported”Optional<String>getOsMinimumVersion()“Min OS version supported”Optional<Boolean>getPersonalDeviceEnrollmentBlocked()“Block personally owned devices from enrolling”Optional<Boolean>getPlatformBlocked()“Block the platform from enrolling”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceEnrollmentPlatformRestrictionwithOsMaximumVersion(String osMaximumVersion)Returns an immutable copy ofthiswith just theosMaximumVersionfield changed.DeviceEnrollmentPlatformRestrictionwithOsMinimumVersion(String osMinimumVersion)Returns an immutable copy ofthiswith just theosMinimumVersionfield changed.DeviceEnrollmentPlatformRestrictionwithPersonalDeviceEnrollmentBlocked(Boolean personalDeviceEnrollmentBlocked)Returns an immutable copy ofthiswith just thepersonalDeviceEnrollmentBlockedfield changed.DeviceEnrollmentPlatformRestrictionwithPlatformBlocked(Boolean platformBlocked)Returns an immutable copy ofthiswith just theplatformBlockedfield changed.DeviceEnrollmentPlatformRestrictionwithUnmappedField(String name, Object 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
-
osMaximumVersion
protected String osMaximumVersion
-
osMinimumVersion
protected String osMinimumVersion
-
personalDeviceEnrollmentBlocked
protected Boolean personalDeviceEnrollmentBlocked
-
platformBlocked
protected Boolean platformBlocked
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getOsMaximumVersion
public Optional<String> getOsMaximumVersion()
“Max OS version supported”- Returns:
- property osMaximumVersion
-
withOsMaximumVersion
public DeviceEnrollmentPlatformRestriction withOsMaximumVersion(String osMaximumVersion)
Returns an immutable copy ofthiswith just theosMaximumVersionfield 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.“Max OS version supported”
- Parameters:
osMaximumVersion- new value ofosMaximumVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosMaximumVersionfield changed
-
getOsMinimumVersion
public Optional<String> getOsMinimumVersion()
“Min OS version supported”- Returns:
- property osMinimumVersion
-
withOsMinimumVersion
public DeviceEnrollmentPlatformRestriction withOsMinimumVersion(String osMinimumVersion)
Returns an immutable copy ofthiswith just theosMinimumVersionfield 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.“Min OS version supported”
- Parameters:
osMinimumVersion- new value ofosMinimumVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosMinimumVersionfield changed
-
getPersonalDeviceEnrollmentBlocked
public Optional<Boolean> getPersonalDeviceEnrollmentBlocked()
“Block personally owned devices from enrolling”- Returns:
- property personalDeviceEnrollmentBlocked
-
withPersonalDeviceEnrollmentBlocked
public DeviceEnrollmentPlatformRestriction withPersonalDeviceEnrollmentBlocked(Boolean personalDeviceEnrollmentBlocked)
Returns an immutable copy ofthiswith just thepersonalDeviceEnrollmentBlockedfield 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.“Block personally owned devices from enrolling”
- Parameters:
personalDeviceEnrollmentBlocked- new value ofpersonalDeviceEnrollmentBlockedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepersonalDeviceEnrollmentBlockedfield changed
-
getPlatformBlocked
public Optional<Boolean> getPlatformBlocked()
“Block the platform from enrolling”- Returns:
- property platformBlocked
-
withPlatformBlocked
public DeviceEnrollmentPlatformRestriction withPlatformBlocked(Boolean platformBlocked)
Returns an immutable copy ofthiswith just theplatformBlockedfield 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.“Block the platform from enrolling”
- Parameters:
platformBlocked- new value ofplatformBlockedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theplatformBlockedfield changed
-
withUnmappedField
public DeviceEnrollmentPlatformRestriction withUnmappedField(String name, Object 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 DeviceEnrollmentPlatformRestriction.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
-
-