Class DeviceEnrollmentPlatformRestrictionsConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceEnrollmentConfiguration
-
- odata.msgraph.client.beta.entity.DeviceEnrollmentPlatformRestrictionsConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceEnrollmentPlatformRestrictionsConfiguration extends DeviceEnrollmentConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“Device Enrollment Configuration that restricts the types of devices a user can enroll”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceEnrollmentPlatformRestrictionsConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected DeviceEnrollmentPlatformRestrictionandroidForWorkRestrictionprotected DeviceEnrollmentPlatformRestrictionandroidRestrictionprotected DeviceEnrollmentPlatformRestrictioniosRestrictionprotected DeviceEnrollmentPlatformRestrictionmacOSRestrictionprotected DeviceEnrollmentPlatformRestrictionmacRestrictionprotected DeviceEnrollmentPlatformRestrictionwindowsHomeSkuRestrictionprotected DeviceEnrollmentPlatformRestrictionwindowsMobileRestrictionprotected DeviceEnrollmentPlatformRestrictionwindowsRestriction-
Fields inherited from class odata.msgraph.client.beta.entity.DeviceEnrollmentConfiguration
createdDateTime, description, deviceEnrollmentConfigurationType, displayName, lastModifiedDateTime, priority, roleScopeTagIds, roleScopeTagIdsNextLink, version
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceEnrollmentPlatformRestrictionsConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceEnrollmentPlatformRestrictionsConfiguration.BuilderbuilderDeviceEnrollmentPlatformRestrictionsConfiguration()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<DeviceEnrollmentPlatformRestriction>getAndroidForWorkRestriction()“Android for work restrictions based on platform, platform operating system version, and device ownership”Optional<DeviceEnrollmentPlatformRestriction>getAndroidRestriction()“Android restrictions based on platform, platform operating system version, and device ownership”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<DeviceEnrollmentPlatformRestriction>getIosRestriction()“Ios restrictions based on platform, platform operating system version, and device ownership”Optional<DeviceEnrollmentPlatformRestriction>getMacOSRestriction()“Mac restrictions based on platform, platform operating system version, and device ownership”Optional<DeviceEnrollmentPlatformRestriction>getMacRestriction()“Mac restrictions based on platform, platform operating system version, and device ownership”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<DeviceEnrollmentPlatformRestriction>getWindowsHomeSkuRestriction()“Windows Home Sku restrictions based on platform, platform operating system version, and device ownership”Optional<DeviceEnrollmentPlatformRestriction>getWindowsMobileRestriction()“Windows mobile restrictions based on platform, platform operating system version , and device ownership”Optional<DeviceEnrollmentPlatformRestriction>getWindowsRestriction()“Windows restrictions based on platform, platform operating system version, and device ownership”StringodataTypeName()DeviceEnrollmentPlatformRestrictionsConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceEnrollmentPlatformRestrictionsConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceEnrollmentPlatformRestrictionsConfigurationwithAndroidForWorkRestriction(DeviceEnrollmentPlatformRestriction androidForWorkRestriction)Returns an immutable copy ofthiswith just theandroidForWorkRestrictionfield changed.DeviceEnrollmentPlatformRestrictionsConfigurationwithAndroidRestriction(DeviceEnrollmentPlatformRestriction androidRestriction)Returns an immutable copy ofthiswith just theandroidRestrictionfield changed.DeviceEnrollmentPlatformRestrictionsConfigurationwithIosRestriction(DeviceEnrollmentPlatformRestriction iosRestriction)Returns an immutable copy ofthiswith just theiosRestrictionfield changed.DeviceEnrollmentPlatformRestrictionsConfigurationwithMacOSRestriction(DeviceEnrollmentPlatformRestriction macOSRestriction)Returns an immutable copy ofthiswith just themacOSRestrictionfield changed.DeviceEnrollmentPlatformRestrictionsConfigurationwithMacRestriction(DeviceEnrollmentPlatformRestriction macRestriction)Returns an immutable copy ofthiswith just themacRestrictionfield changed.DeviceEnrollmentPlatformRestrictionsConfigurationwithUnmappedField(String name, String value)DeviceEnrollmentPlatformRestrictionsConfigurationwithWindowsHomeSkuRestriction(DeviceEnrollmentPlatformRestriction windowsHomeSkuRestriction)Returns an immutable copy ofthiswith just thewindowsHomeSkuRestrictionfield changed.DeviceEnrollmentPlatformRestrictionsConfigurationwithWindowsMobileRestriction(DeviceEnrollmentPlatformRestriction windowsMobileRestriction)Returns an immutable copy ofthiswith just thewindowsMobileRestrictionfield changed.DeviceEnrollmentPlatformRestrictionsConfigurationwithWindowsRestriction(DeviceEnrollmentPlatformRestriction windowsRestriction)Returns an immutable copy ofthiswith just thewindowsRestrictionfield changed.-
Methods inherited from class odata.msgraph.client.beta.entity.DeviceEnrollmentConfiguration
assign, getAssignments, getCreatedDateTime, getDescription, getDeviceEnrollmentConfigurationType, getDisplayName, getLastModifiedDateTime, getPriority, getRoleScopeTagIds, getRoleScopeTagIds, getVersion, setPriority, withCreatedDateTime, withDescription, withDeviceEnrollmentConfigurationType, withDisplayName, withLastModifiedDateTime, withPriority, withRoleScopeTagIds, withVersion
-
-
-
-
Field Detail
-
androidForWorkRestriction
protected DeviceEnrollmentPlatformRestriction androidForWorkRestriction
-
androidRestriction
protected DeviceEnrollmentPlatformRestriction androidRestriction
-
iosRestriction
protected DeviceEnrollmentPlatformRestriction iosRestriction
-
macOSRestriction
protected DeviceEnrollmentPlatformRestriction macOSRestriction
-
macRestriction
protected DeviceEnrollmentPlatformRestriction macRestriction
-
windowsHomeSkuRestriction
protected DeviceEnrollmentPlatformRestriction windowsHomeSkuRestriction
-
windowsMobileRestriction
protected DeviceEnrollmentPlatformRestriction windowsMobileRestriction
-
windowsRestriction
protected DeviceEnrollmentPlatformRestriction windowsRestriction
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceEnrollmentConfiguration
-
builderDeviceEnrollmentPlatformRestrictionsConfiguration
public static DeviceEnrollmentPlatformRestrictionsConfiguration.Builder builderDeviceEnrollmentPlatformRestrictionsConfiguration()
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
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classDeviceEnrollmentConfiguration
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceEnrollmentConfiguration
-
getAndroidForWorkRestriction
public Optional<DeviceEnrollmentPlatformRestriction> getAndroidForWorkRestriction()
“Android for work restrictions based on platform, platform operating system version, and device ownership”- Returns:
- property androidForWorkRestriction
-
withAndroidForWorkRestriction
public DeviceEnrollmentPlatformRestrictionsConfiguration withAndroidForWorkRestriction(DeviceEnrollmentPlatformRestriction androidForWorkRestriction)
Returns an immutable copy ofthiswith just theandroidForWorkRestrictionfield 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.“Android for work restrictions based on platform, platform operating system version, and device ownership”
- Parameters:
androidForWorkRestriction- new value ofandroidForWorkRestrictionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theandroidForWorkRestrictionfield changed
-
getAndroidRestriction
public Optional<DeviceEnrollmentPlatformRestriction> getAndroidRestriction()
“Android restrictions based on platform, platform operating system version, and device ownership”- Returns:
- property androidRestriction
-
withAndroidRestriction
public DeviceEnrollmentPlatformRestrictionsConfiguration withAndroidRestriction(DeviceEnrollmentPlatformRestriction androidRestriction)
Returns an immutable copy ofthiswith just theandroidRestrictionfield 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.“Android restrictions based on platform, platform operating system version, and device ownership”
- Parameters:
androidRestriction- new value ofandroidRestrictionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theandroidRestrictionfield changed
-
getIosRestriction
public Optional<DeviceEnrollmentPlatformRestriction> getIosRestriction()
“Ios restrictions based on platform, platform operating system version, and device ownership”- Returns:
- property iosRestriction
-
withIosRestriction
public DeviceEnrollmentPlatformRestrictionsConfiguration withIosRestriction(DeviceEnrollmentPlatformRestriction iosRestriction)
Returns an immutable copy ofthiswith just theiosRestrictionfield 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.“Ios restrictions based on platform, platform operating system version, and device ownership”
- Parameters:
iosRestriction- new value ofiosRestrictionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theiosRestrictionfield changed
-
getMacOSRestriction
public Optional<DeviceEnrollmentPlatformRestriction> getMacOSRestriction()
“Mac restrictions based on platform, platform operating system version, and device ownership”- Returns:
- property macOSRestriction
-
withMacOSRestriction
public DeviceEnrollmentPlatformRestrictionsConfiguration withMacOSRestriction(DeviceEnrollmentPlatformRestriction macOSRestriction)
Returns an immutable copy ofthiswith just themacOSRestrictionfield 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.“Mac restrictions based on platform, platform operating system version, and device ownership”
- Parameters:
macOSRestriction- new value ofmacOSRestrictionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themacOSRestrictionfield changed
-
getMacRestriction
public Optional<DeviceEnrollmentPlatformRestriction> getMacRestriction()
“Mac restrictions based on platform, platform operating system version, and device ownership”- Returns:
- property macRestriction
-
withMacRestriction
public DeviceEnrollmentPlatformRestrictionsConfiguration withMacRestriction(DeviceEnrollmentPlatformRestriction macRestriction)
Returns an immutable copy ofthiswith just themacRestrictionfield 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.“Mac restrictions based on platform, platform operating system version, and device ownership”
- Parameters:
macRestriction- new value ofmacRestrictionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themacRestrictionfield changed
-
getWindowsHomeSkuRestriction
public Optional<DeviceEnrollmentPlatformRestriction> getWindowsHomeSkuRestriction()
“Windows Home Sku restrictions based on platform, platform operating system version, and device ownership”- Returns:
- property windowsHomeSkuRestriction
-
withWindowsHomeSkuRestriction
public DeviceEnrollmentPlatformRestrictionsConfiguration withWindowsHomeSkuRestriction(DeviceEnrollmentPlatformRestriction windowsHomeSkuRestriction)
Returns an immutable copy ofthiswith just thewindowsHomeSkuRestrictionfield 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.“Windows Home Sku restrictions based on platform, platform operating system version, and device ownership”
- Parameters:
windowsHomeSkuRestriction- new value ofwindowsHomeSkuRestrictionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thewindowsHomeSkuRestrictionfield changed
-
getWindowsMobileRestriction
public Optional<DeviceEnrollmentPlatformRestriction> getWindowsMobileRestriction()
“Windows mobile restrictions based on platform, platform operating system version , and device ownership”- Returns:
- property windowsMobileRestriction
-
withWindowsMobileRestriction
public DeviceEnrollmentPlatformRestrictionsConfiguration withWindowsMobileRestriction(DeviceEnrollmentPlatformRestriction windowsMobileRestriction)
Returns an immutable copy ofthiswith just thewindowsMobileRestrictionfield 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.“Windows mobile restrictions based on platform, platform operating system version , and device ownership”
- Parameters:
windowsMobileRestriction- new value ofwindowsMobileRestrictionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thewindowsMobileRestrictionfield changed
-
getWindowsRestriction
public Optional<DeviceEnrollmentPlatformRestriction> getWindowsRestriction()
“Windows restrictions based on platform, platform operating system version, and device ownership”- Returns:
- property windowsRestriction
-
withWindowsRestriction
public DeviceEnrollmentPlatformRestrictionsConfiguration withWindowsRestriction(DeviceEnrollmentPlatformRestriction windowsRestriction)
Returns an immutable copy ofthiswith just thewindowsRestrictionfield 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.“Windows restrictions based on platform, platform operating system version, and device ownership”
- Parameters:
windowsRestriction- new value ofwindowsRestrictionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thewindowsRestrictionfield changed
-
withUnmappedField
public DeviceEnrollmentPlatformRestrictionsConfiguration withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceEnrollmentConfiguration
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceEnrollmentConfiguration
-
patch
public DeviceEnrollmentPlatformRestrictionsConfiguration patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classDeviceEnrollmentConfiguration- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public DeviceEnrollmentPlatformRestrictionsConfiguration put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classDeviceEnrollmentConfiguration- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classDeviceEnrollmentConfiguration
-
-