Class DeviceManagementSettingStringLengthConstraint
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceManagementConstraint
-
- odata.msgraph.client.beta.complex.DeviceManagementSettingStringLengthConstraint
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceManagementSettingStringLengthConstraint extends DeviceManagementConstraint implements com.github.davidmoten.odata.client.ODataType
“Constraint enforcing a given string length range”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementSettingStringLengthConstraint.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegermaximumLengthprotected IntegerminimumLength-
Fields inherited from class odata.msgraph.client.beta.complex.DeviceManagementConstraint
contextPath, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementSettingStringLengthConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementSettingStringLengthConstraint.BuilderbuilderDeviceManagementSettingStringLengthConstraint()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Integer>getMaximumLength()“The maximum permitted string length”Optional<Integer>getMinimumLength()“The minimum permitted string length”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceManagementSettingStringLengthConstraintwithMaximumLength(Integer maximumLength)Returns an immutable copy ofthiswith just themaximumLengthfield changed.DeviceManagementSettingStringLengthConstraintwithMinimumLength(Integer minimumLength)Returns an immutable copy ofthiswith just theminimumLengthfield changed.DeviceManagementSettingStringLengthConstraintwithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceManagementConstraint
-
getMaximumLength
public Optional<Integer> getMaximumLength()
“The maximum permitted string length”- Returns:
- property maximumLength
-
withMaximumLength
public DeviceManagementSettingStringLengthConstraint withMaximumLength(Integer maximumLength)
Returns an immutable copy ofthiswith just themaximumLengthfield 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 string length”
- Parameters:
maximumLength- new value ofmaximumLengthfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaximumLengthfield changed
-
getMinimumLength
public Optional<Integer> getMinimumLength()
“The minimum permitted string length”- Returns:
- property minimumLength
-
withMinimumLength
public DeviceManagementSettingStringLengthConstraint withMinimumLength(Integer minimumLength)
Returns an immutable copy ofthiswith just theminimumLengthfield 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 string length”
- Parameters:
minimumLength- new value ofminimumLengthfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminimumLengthfield changed
-
withUnmappedField
public DeviceManagementSettingStringLengthConstraint 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
-
builderDeviceManagementSettingStringLengthConstraint
public static DeviceManagementSettingStringLengthConstraint.Builder builderDeviceManagementSettingStringLengthConstraint()
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
-
-