public class DeviceManagementSettingStringLengthConstraint extends DeviceManagementConstraint implements com.github.davidmoten.odata.client.ODataType
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceManagementSettingStringLengthConstraint.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
maximumLength |
protected Integer |
minimumLength |
protected com.github.davidmoten.odata.client.internal.UnmappedFields |
unmappedFields |
contextPath, odataType| Modifier | Constructor and Description |
|---|---|
protected |
DeviceManagementSettingStringLengthConstraint() |
| Modifier and Type | Method and Description |
|---|---|
static DeviceManagementSettingStringLengthConstraint.Builder |
builderDeviceManagementSettingStringLengthConstraint()
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.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
void |
postInject(boolean addKeysToContextPath) |
String |
toString() |
DeviceManagementSettingStringLengthConstraint |
withMaximumLength(Integer maximumLength)
Returns an immutable copy of
this with just the maximumLength
field changed. |
DeviceManagementSettingStringLengthConstraint |
withMinimumLength(Integer minimumLength)
Returns an immutable copy of
this with just the minimumLength
field changed. |
protected com.github.davidmoten.odata.client.internal.UnmappedFields unmappedFields
protected Integer minimumLength
protected Integer maximumLength
protected DeviceManagementSettingStringLengthConstraint()
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class DeviceManagementConstraintpublic Optional<Integer> getMinimumLength()
public DeviceManagementSettingStringLengthConstraint withMinimumLength(Integer minimumLength)
this with just the minimumLength
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The minimum permitted string length”
minimumLength - new value of minimumLength field (as defined in service metadata)this with just the minimumLength field changedpublic Optional<Integer> getMaximumLength()
public DeviceManagementSettingStringLengthConstraint withMaximumLength(Integer maximumLength)
this with just the maximumLength
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The maximum permitted string length”
maximumLength - new value of maximumLength field (as defined in service metadata)this with just the maximumLength field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class DeviceManagementConstraintpublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class DeviceManagementConstraintpublic static DeviceManagementSettingStringLengthConstraint.Builder builderDeviceManagementSettingStringLengthConstraint()
public String toString()
toString in class DeviceManagementConstraintCopyright © 2018–2020. All rights reserved.