Package odata.msgraph.client.entity
Class DeviceEnrollmentLimitConfiguration
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.DeviceEnrollmentConfiguration
-
- odata.msgraph.client.entity.DeviceEnrollmentLimitConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceEnrollmentLimitConfiguration extends DeviceEnrollmentConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“Device Enrollment Configuration that restricts the number of devices a user can enroll”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceEnrollmentLimitConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Integerlimit-
Fields inherited from class odata.msgraph.client.entity.DeviceEnrollmentConfiguration
assignments, createdDateTime, description, displayName, lastModifiedDateTime, priority, version
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceEnrollmentLimitConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceEnrollmentLimitConfiguration.BuilderbuilderDeviceEnrollmentLimitConfiguration()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<Integer>getLimit()“The maximum number of devices that a user can enroll”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceEnrollmentLimitConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceEnrollmentLimitConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceEnrollmentLimitConfigurationwithLimit(Integer limit)Returns an immutable copy ofthiswith just thelimitfield changed.DeviceEnrollmentLimitConfigurationwithUnmappedField(String name, Object value)-
Methods inherited from class odata.msgraph.client.entity.DeviceEnrollmentConfiguration
assign, getAssignments, getCreatedDateTime, getDescription, getDisplayName, getLastModifiedDateTime, getPriority, getVersion, setPriority, withAssignments, withCreatedDateTime, withDescription, withDisplayName, withLastModifiedDateTime, withPriority, withVersion
-
-
-
-
Field Detail
-
limit
protected Integer limit
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceEnrollmentConfiguration
-
builderDeviceEnrollmentLimitConfiguration
public static DeviceEnrollmentLimitConfiguration.Builder builderDeviceEnrollmentLimitConfiguration()
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
-
getLimit
public Optional<Integer> getLimit()
“The maximum number of devices that a user can enroll”- Returns:
- property limit
-
withLimit
public DeviceEnrollmentLimitConfiguration withLimit(Integer limit)
Returns an immutable copy ofthiswith just thelimitfield 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 maximum number of devices that a user can enroll”
- Parameters:
limit- new value oflimitfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelimitfield changed
-
withUnmappedField
public DeviceEnrollmentLimitConfiguration withUnmappedField(String name, Object 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 DeviceEnrollmentLimitConfiguration 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 DeviceEnrollmentLimitConfiguration 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
-
-