Class DeviceManagementSettingCollectionConstraint
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceManagementConstraint
-
- odata.msgraph.client.beta.complex.DeviceManagementSettingCollectionConstraint
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceManagementSettingCollectionConstraint extends DeviceManagementConstraint implements com.github.davidmoten.odata.client.ODataType
“Constraint that enforces the maximum number of elements a collection”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementSettingCollectionConstraint.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 protectedDeviceManagementSettingCollectionConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementSettingCollectionConstraint.BuilderbuilderDeviceManagementSettingCollectionConstraint()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 number of elements in the collection”Optional<Integer>getMinimumLength()“The minimum number of elements in the collection”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceManagementSettingCollectionConstraintwithMaximumLength(Integer maximumLength)Returns an immutable copy ofthiswith just themaximumLengthfield changed.DeviceManagementSettingCollectionConstraintwithMinimumLength(Integer minimumLength)Returns an immutable copy ofthiswith just theminimumLengthfield changed.DeviceManagementSettingCollectionConstraintwithUnmappedField(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 number of elements in the collection”- Returns:
- property maximumLength
-
withMaximumLength
public DeviceManagementSettingCollectionConstraint 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 number of elements in the collection”
- 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 number of elements in the collection”- Returns:
- property minimumLength
-
withMinimumLength
public DeviceManagementSettingCollectionConstraint 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 number of elements in the collection”
- Parameters:
minimumLength- new value ofminimumLengthfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminimumLengthfield changed
-
withUnmappedField
public DeviceManagementSettingCollectionConstraint 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
-
builderDeviceManagementSettingCollectionConstraint
public static DeviceManagementSettingCollectionConstraint.Builder builderDeviceManagementSettingCollectionConstraint()
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
-
-