Package odata.msgraph.client.beta.entity
Class DeviceEnrollmentPlatformRestrictionConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceEnrollmentConfiguration
-
- odata.msgraph.client.beta.entity.DeviceEnrollmentPlatformRestrictionConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceEnrollmentPlatformRestrictionConfiguration extends DeviceEnrollmentConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“Device Enrollment Configuration that restricts the types of devices a user can enroll for a single platform”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceEnrollmentPlatformRestrictionConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected DeviceEnrollmentPlatformRestrictionplatformRestrictionprotected EnrollmentRestrictionPlatformTypeplatformType-
Fields inherited from class odata.msgraph.client.beta.entity.DeviceEnrollmentConfiguration
createdDateTime, description, 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 protectedDeviceEnrollmentPlatformRestrictionConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceEnrollmentPlatformRestrictionConfiguration.BuilderbuilderDeviceEnrollmentPlatformRestrictionConfiguration()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<DeviceEnrollmentPlatformRestriction>getPlatformRestriction()“Restrictions based on platform, platform operating system version, and device ownership”Optional<EnrollmentRestrictionPlatformType>getPlatformType()“Type of platform for which this restriction applies.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceEnrollmentPlatformRestrictionConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceEnrollmentPlatformRestrictionConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceEnrollmentPlatformRestrictionConfigurationwithPlatformRestriction(DeviceEnrollmentPlatformRestriction platformRestriction)Returns an immutable copy ofthiswith just theplatformRestrictionfield changed.DeviceEnrollmentPlatformRestrictionConfigurationwithPlatformType(EnrollmentRestrictionPlatformType platformType)Returns an immutable copy ofthiswith just theplatformTypefield changed.DeviceEnrollmentPlatformRestrictionConfigurationwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.DeviceEnrollmentConfiguration
assign, getAssignments, getCreatedDateTime, getDescription, getDisplayName, getLastModifiedDateTime, getPriority, getRoleScopeTagIds, getRoleScopeTagIds, getVersion, setPriority, withCreatedDateTime, withDescription, withDisplayName, withLastModifiedDateTime, withPriority, withRoleScopeTagIds, withVersion
-
-
-
-
Field Detail
-
platformRestriction
protected DeviceEnrollmentPlatformRestriction platformRestriction
-
platformType
protected EnrollmentRestrictionPlatformType platformType
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceEnrollmentConfiguration
-
builderDeviceEnrollmentPlatformRestrictionConfiguration
public static DeviceEnrollmentPlatformRestrictionConfiguration.Builder builderDeviceEnrollmentPlatformRestrictionConfiguration()
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
-
getPlatformRestriction
public Optional<DeviceEnrollmentPlatformRestriction> getPlatformRestriction()
“Restrictions based on platform, platform operating system version, and device ownership”- Returns:
- property platformRestriction
-
withPlatformRestriction
public DeviceEnrollmentPlatformRestrictionConfiguration withPlatformRestriction(DeviceEnrollmentPlatformRestriction platformRestriction)
Returns an immutable copy ofthiswith just theplatformRestrictionfield 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.“Restrictions based on platform, platform operating system version, and device ownership”
- Parameters:
platformRestriction- new value ofplatformRestrictionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theplatformRestrictionfield changed
-
getPlatformType
public Optional<EnrollmentRestrictionPlatformType> getPlatformType()
“Type of platform for which this restriction applies.”- Returns:
- property platformType
-
withPlatformType
public DeviceEnrollmentPlatformRestrictionConfiguration withPlatformType(EnrollmentRestrictionPlatformType platformType)
Returns an immutable copy ofthiswith just theplatformTypefield 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.“Type of platform for which this restriction applies.”
- Parameters:
platformType- new value ofplatformTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theplatformTypefield changed
-
withUnmappedField
public DeviceEnrollmentPlatformRestrictionConfiguration 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 DeviceEnrollmentPlatformRestrictionConfiguration 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 DeviceEnrollmentPlatformRestrictionConfiguration 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
-
-