Class DeviceManagementConfigurationStringSettingValueDefinition
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceManagementConfigurationSettingValueDefinition
-
- odata.msgraph.client.beta.complex.DeviceManagementConfigurationStringSettingValueDefinition
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceManagementConfigurationStringSettingValueDefinition extends DeviceManagementConfigurationSettingValueDefinition implements com.github.davidmoten.odata.client.ODataType
“String constraints”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementConfigurationStringSettingValueDefinition.Builder
-
Field Summary
Fields Modifier and Type Field Description protected DeviceManagementConfigurationStringFormatformatprotected StringinputValidationSchemaprotected BooleanisSecretprotected LongmaximumLengthprotected LongminimumLength-
Fields inherited from class odata.msgraph.client.beta.complex.DeviceManagementConfigurationSettingValueDefinition
contextPath, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementConfigurationStringSettingValueDefinition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementConfigurationStringSettingValueDefinition.BuilderbuilderDeviceManagementConfigurationStringSettingValueDefinition()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<DeviceManagementConfigurationStringFormat>getFormat()“Pre-defined format of the string”Optional<String>getInputValidationSchema()“Regular expression or any xml or json schema that the input string should match”Optional<Boolean>getIsSecret()“Specifies whether the setting needs to be treated as a secret.Optional<Long>getMaximumLength()“Maximum length of string.Optional<Long>getMinimumLength()“Minimum length of string.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceManagementConfigurationStringSettingValueDefinitionwithFormat(DeviceManagementConfigurationStringFormat format)Returns an immutable copy ofthiswith just theformatfield changed.DeviceManagementConfigurationStringSettingValueDefinitionwithInputValidationSchema(String inputValidationSchema)Returns an immutable copy ofthiswith just theinputValidationSchemafield changed.DeviceManagementConfigurationStringSettingValueDefinitionwithIsSecret(Boolean isSecret)Returns an immutable copy ofthiswith just theisSecretfield changed.DeviceManagementConfigurationStringSettingValueDefinitionwithMaximumLength(Long maximumLength)Returns an immutable copy ofthiswith just themaximumLengthfield changed.DeviceManagementConfigurationStringSettingValueDefinitionwithMinimumLength(Long minimumLength)Returns an immutable copy ofthiswith just theminimumLengthfield changed.DeviceManagementConfigurationStringSettingValueDefinitionwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.complex.DeviceManagementConfigurationSettingValueDefinition
builder
-
-
-
-
Field Detail
-
format
protected DeviceManagementConfigurationStringFormat format
-
inputValidationSchema
protected String inputValidationSchema
-
isSecret
protected Boolean isSecret
-
maximumLength
protected Long maximumLength
-
minimumLength
protected Long minimumLength
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceManagementConfigurationSettingValueDefinition
-
getFormat
public Optional<DeviceManagementConfigurationStringFormat> getFormat()
“Pre-defined format of the string”- Returns:
- property format
-
withFormat
public DeviceManagementConfigurationStringSettingValueDefinition withFormat(DeviceManagementConfigurationStringFormat format)
Returns an immutable copy ofthiswith just theformatfield 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.“Pre-defined format of the string”
- Parameters:
format- new value offormatfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theformatfield changed
-
getInputValidationSchema
public Optional<String> getInputValidationSchema()
“Regular expression or any xml or json schema that the input string should match”- Returns:
- property inputValidationSchema
-
withInputValidationSchema
public DeviceManagementConfigurationStringSettingValueDefinition withInputValidationSchema(String inputValidationSchema)
Returns an immutable copy ofthiswith just theinputValidationSchemafield 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.“Regular expression or any xml or json schema that the input string should match”
- Parameters:
inputValidationSchema- new value ofinputValidationSchemafield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinputValidationSchemafield changed
-
getIsSecret
public Optional<Boolean> getIsSecret()
“Specifies whether the setting needs to be treated as a secret. Settings marked as yes will be encrypted in transit and at rest and will be displayed as asterisks when represented in the UX.”- Returns:
- property isSecret
-
withIsSecret
public DeviceManagementConfigurationStringSettingValueDefinition withIsSecret(Boolean isSecret)
Returns an immutable copy ofthiswith just theisSecretfield 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.“Specifies whether the setting needs to be treated as a secret. Settings marked as yes will be encrypted in transit and at rest and will be displayed as asterisks when represented in the UX.”
- Parameters:
isSecret- new value ofisSecretfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisSecretfield changed
-
getMaximumLength
public Optional<Long> getMaximumLength()
“Maximum length of string. Valid values 0 to 87516”- Returns:
- property maximumLength
-
withMaximumLength
public DeviceManagementConfigurationStringSettingValueDefinition withMaximumLength(Long 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.“Maximum length of string. Valid values 0 to 87516”
- Parameters:
maximumLength- new value ofmaximumLengthfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaximumLengthfield changed
-
getMinimumLength
public Optional<Long> getMinimumLength()
“Minimum length of string. Valid values 0 to 87516”- Returns:
- property minimumLength
-
withMinimumLength
public DeviceManagementConfigurationStringSettingValueDefinition withMinimumLength(Long 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.“Minimum length of string. Valid values 0 to 87516”
- Parameters:
minimumLength- new value ofminimumLengthfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminimumLengthfield changed
-
withUnmappedField
public DeviceManagementConfigurationStringSettingValueDefinition withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceManagementConfigurationSettingValueDefinition
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceManagementConfigurationSettingValueDefinition
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceManagementConfigurationSettingValueDefinition
-
builderDeviceManagementConfigurationStringSettingValueDefinition
public static DeviceManagementConfigurationStringSettingValueDefinition.Builder builderDeviceManagementConfigurationStringSettingValueDefinition()
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 classDeviceManagementConfigurationSettingValueDefinition
-
-