Class PropertyDefinition
java.lang.Object
com.azure.resourcemanager.customerinsights.models.PropertyDefinition
Property definition.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the arrayValueSeparator property: Array value separator for properties with isArray set.Get the dataSourcePrecedenceRules property: This is specific to interactions modeled as activities.Get the enumValidValues property: Describes valid values for an enum property.Get the fieldName property: Name of the property.Get the fieldType property: Type of the property.isArray()
Get the isArray property: Indicates if the property is actually an array of the fieldType above on the data api.Get the isAvailableInGraph property: Whether property is available in graph or not.isEnum()
Get the isEnum property: Indicates if the property is an enum.Get the isFlagEnum property: Indicates if the property is an flag enum.isImage()
Get the isImage property: Whether the property is an Image.Get the isLocalizedString property: Whether the property is a localized string.isName()
Get the isName property: Whether the property is a name or a part of name.Get the isRequired property: Whether property value is required on instances, IsRequired field only for Interaction.Get the maxLength property: Max length of string.Get the propertyId property: The ID associated with the property.Get the schemaItemPropLink property: URL encoded schema.org item prop link for the property.void
validate()
Validates the instance.withArrayValueSeparator
(String arrayValueSeparator) Set the arrayValueSeparator property: Array value separator for properties with isArray set.withEnumValidValues
(List<ProfileEnumValidValuesFormat> enumValidValues) Set the enumValidValues property: Describes valid values for an enum property.withFieldName
(String fieldName) Set the fieldName property: Name of the property.withFieldType
(String fieldType) Set the fieldType property: Type of the property.withIsArray
(Boolean isArray) Set the isArray property: Indicates if the property is actually an array of the fieldType above on the data api.withIsAvailableInGraph
(Boolean isAvailableInGraph) Set the isAvailableInGraph property: Whether property is available in graph or not.withIsEnum
(Boolean isEnum) Set the isEnum property: Indicates if the property is an enum.withIsFlagEnum
(Boolean isFlagEnum) Set the isFlagEnum property: Indicates if the property is an flag enum.withIsImage
(Boolean isImage) Set the isImage property: Whether the property is an Image.withIsLocalizedString
(Boolean isLocalizedString) Set the isLocalizedString property: Whether the property is a localized string.withIsName
(Boolean isName) Set the isName property: Whether the property is a name or a part of name.withIsRequired
(Boolean isRequired) Set the isRequired property: Whether property value is required on instances, IsRequired field only for Interaction.withMaxLength
(Integer maxLength) Set the maxLength property: Max length of string.withPropertyId
(String propertyId) Set the propertyId property: The ID associated with the property.withSchemaItemPropLink
(String schemaItemPropLink) Set the schemaItemPropLink property: URL encoded schema.org item prop link for the property.
-
Constructor Details
-
PropertyDefinition
public PropertyDefinition()Creates an instance of PropertyDefinition class.
-
-
Method Details
-
arrayValueSeparator
Get the arrayValueSeparator property: Array value separator for properties with isArray set.- Returns:
- the arrayValueSeparator value.
-
withArrayValueSeparator
Set the arrayValueSeparator property: Array value separator for properties with isArray set.- Parameters:
arrayValueSeparator
- the arrayValueSeparator value to set.- Returns:
- the PropertyDefinition object itself.
-
enumValidValues
Get the enumValidValues property: Describes valid values for an enum property.- Returns:
- the enumValidValues value.
-
withEnumValidValues
Set the enumValidValues property: Describes valid values for an enum property.- Parameters:
enumValidValues
- the enumValidValues value to set.- Returns:
- the PropertyDefinition object itself.
-
fieldName
Get the fieldName property: Name of the property.- Returns:
- the fieldName value.
-
withFieldName
Set the fieldName property: Name of the property.- Parameters:
fieldName
- the fieldName value to set.- Returns:
- the PropertyDefinition object itself.
-
fieldType
Get the fieldType property: Type of the property.- Returns:
- the fieldType value.
-
withFieldType
Set the fieldType property: Type of the property.- Parameters:
fieldType
- the fieldType value to set.- Returns:
- the PropertyDefinition object itself.
-
isArray
Get the isArray property: Indicates if the property is actually an array of the fieldType above on the data api.- Returns:
- the isArray value.
-
withIsArray
Set the isArray property: Indicates if the property is actually an array of the fieldType above on the data api.- Parameters:
isArray
- the isArray value to set.- Returns:
- the PropertyDefinition object itself.
-
isEnum
Get the isEnum property: Indicates if the property is an enum.- Returns:
- the isEnum value.
-
withIsEnum
Set the isEnum property: Indicates if the property is an enum.- Parameters:
isEnum
- the isEnum value to set.- Returns:
- the PropertyDefinition object itself.
-
isFlagEnum
Get the isFlagEnum property: Indicates if the property is an flag enum.- Returns:
- the isFlagEnum value.
-
withIsFlagEnum
Set the isFlagEnum property: Indicates if the property is an flag enum.- Parameters:
isFlagEnum
- the isFlagEnum value to set.- Returns:
- the PropertyDefinition object itself.
-
isImage
Get the isImage property: Whether the property is an Image.- Returns:
- the isImage value.
-
withIsImage
Set the isImage property: Whether the property is an Image.- Parameters:
isImage
- the isImage value to set.- Returns:
- the PropertyDefinition object itself.
-
isLocalizedString
Get the isLocalizedString property: Whether the property is a localized string.- Returns:
- the isLocalizedString value.
-
withIsLocalizedString
Set the isLocalizedString property: Whether the property is a localized string.- Parameters:
isLocalizedString
- the isLocalizedString value to set.- Returns:
- the PropertyDefinition object itself.
-
isName
Get the isName property: Whether the property is a name or a part of name.- Returns:
- the isName value.
-
withIsName
Set the isName property: Whether the property is a name or a part of name.- Parameters:
isName
- the isName value to set.- Returns:
- the PropertyDefinition object itself.
-
isRequired
Get the isRequired property: Whether property value is required on instances, IsRequired field only for Interaction. Profile Instance will not check for required field.- Returns:
- the isRequired value.
-
withIsRequired
Set the isRequired property: Whether property value is required on instances, IsRequired field only for Interaction. Profile Instance will not check for required field.- Parameters:
isRequired
- the isRequired value to set.- Returns:
- the PropertyDefinition object itself.
-
propertyId
Get the propertyId property: The ID associated with the property.- Returns:
- the propertyId value.
-
withPropertyId
Set the propertyId property: The ID associated with the property.- Parameters:
propertyId
- the propertyId value to set.- Returns:
- the PropertyDefinition object itself.
-
schemaItemPropLink
Get the schemaItemPropLink property: URL encoded schema.org item prop link for the property.- Returns:
- the schemaItemPropLink value.
-
withSchemaItemPropLink
Set the schemaItemPropLink property: URL encoded schema.org item prop link for the property.- Parameters:
schemaItemPropLink
- the schemaItemPropLink value to set.- Returns:
- the PropertyDefinition object itself.
-
maxLength
Get the maxLength property: Max length of string. Used only if type is string.- Returns:
- the maxLength value.
-
withMaxLength
Set the maxLength property: Max length of string. Used only if type is string.- Parameters:
maxLength
- the maxLength value to set.- Returns:
- the PropertyDefinition object itself.
-
isAvailableInGraph
Get the isAvailableInGraph property: Whether property is available in graph or not.- Returns:
- the isAvailableInGraph value.
-
withIsAvailableInGraph
Set the isAvailableInGraph property: Whether property is available in graph or not.- Parameters:
isAvailableInGraph
- the isAvailableInGraph value to set.- Returns:
- the PropertyDefinition object itself.
-
dataSourcePrecedenceRules
Get the dataSourcePrecedenceRules property: This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules.- Returns:
- the dataSourcePrecedenceRules value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-