Class DeviceManagementSettingIntegerConstraint
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceManagementConstraint
-
- odata.msgraph.client.beta.complex.DeviceManagementSettingIntegerConstraint
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceManagementSettingIntegerConstraint extends DeviceManagementConstraint implements com.github.davidmoten.odata.client.ODataType
“Constraint enforcing the permitted value range for an integer setting”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementSettingIntegerConstraint.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegermaximumValueprotected IntegerminimumValue-
Fields inherited from class odata.msgraph.client.beta.complex.DeviceManagementConstraint
contextPath, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementSettingIntegerConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementSettingIntegerConstraint.BuilderbuilderDeviceManagementSettingIntegerConstraint()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Integer>getMaximumValue()“The maximum permitted value”Optional<Integer>getMinimumValue()“The minimum permitted value”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceManagementSettingIntegerConstraintwithMaximumValue(Integer maximumValue)Returns an immutable copy ofthiswith just themaximumValuefield changed.DeviceManagementSettingIntegerConstraintwithMinimumValue(Integer minimumValue)Returns an immutable copy ofthiswith just theminimumValuefield changed.DeviceManagementSettingIntegerConstraintwithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceManagementConstraint
-
getMaximumValue
public Optional<Integer> getMaximumValue()
“The maximum permitted value”- Returns:
- property maximumValue
-
withMaximumValue
public DeviceManagementSettingIntegerConstraint withMaximumValue(Integer maximumValue)
Returns an immutable copy ofthiswith just themaximumValuefield 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 permitted value”
- Parameters:
maximumValue- new value ofmaximumValuefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaximumValuefield changed
-
getMinimumValue
public Optional<Integer> getMinimumValue()
“The minimum permitted value”- Returns:
- property minimumValue
-
withMinimumValue
public DeviceManagementSettingIntegerConstraint withMinimumValue(Integer minimumValue)
Returns an immutable copy ofthiswith just theminimumValuefield 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 minimum permitted value”
- Parameters:
minimumValue- new value ofminimumValuefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminimumValuefield changed
-
withUnmappedField
public DeviceManagementSettingIntegerConstraint withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceManagementConstraint
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceManagementConstraint
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceManagementConstraint
-
builderDeviceManagementSettingIntegerConstraint
public static DeviceManagementSettingIntegerConstraint.Builder builderDeviceManagementSettingIntegerConstraint()
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
-
toString
public String toString()
- Overrides:
toStringin classDeviceManagementConstraint
-
-