Class DeviceManagementSettingRegexConstraint
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceManagementConstraint
-
- odata.msgraph.client.beta.complex.DeviceManagementSettingRegexConstraint
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceManagementSettingRegexConstraint extends DeviceManagementConstraint implements com.github.davidmoten.odata.client.ODataType
“Constraint enforcing the setting matches against a given RegEx pattern”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementSettingRegexConstraint.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringregex-
Fields inherited from class odata.msgraph.client.beta.complex.DeviceManagementConstraint
contextPath, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementSettingRegexConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementSettingRegexConstraint.BuilderbuilderDeviceManagementSettingRegexConstraint()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getRegex()“The RegEx pattern to match against”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceManagementSettingRegexConstraintwithRegex(String regex)Returns an immutable copy ofthiswith just theregexfield changed.DeviceManagementSettingRegexConstraintwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
regex
protected String regex
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceManagementConstraint
-
getRegex
public Optional<String> getRegex()
“The RegEx pattern to match against”- Returns:
- property regex
-
withRegex
public DeviceManagementSettingRegexConstraint withRegex(String regex)
Returns an immutable copy ofthiswith just theregexfield 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 RegEx pattern to match against”
- Parameters:
regex- new value ofregexfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theregexfield changed
-
withUnmappedField
public DeviceManagementSettingRegexConstraint 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
-
builderDeviceManagementSettingRegexConstraint
public static DeviceManagementSettingRegexConstraint.Builder builderDeviceManagementSettingRegexConstraint()
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
-
-