PropertyDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. customerinsights. models. PropertyDefinition
- com.
public final class PropertyDefinition
Property definition.
Constructor Summary
Constructor | Description |
---|---|
PropertyDefinition() |
Creates an instance of Property |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
arrayValueSeparator()
Get the array |
List<Data |
dataSourcePrecedenceRules()
Get the data |
List<Profile |
enumValidValues()
Get the enum |
String |
fieldName()
Get the field |
String |
fieldType()
Get the field |
Boolean |
isArray()
Get the is |
Boolean |
isAvailableInGraph()
Get the is |
Boolean |
isEnum()
Get the is |
Boolean |
isFlagEnum()
Get the is |
Boolean |
isImage()
Get the is |
Boolean |
isLocalizedString()
Get the is |
Boolean |
isName()
Get the is |
Boolean |
isRequired()
Get the is |
Integer |
maxLength()
Get the max |
String |
propertyId()
Get the property |
String |
schemaItemPropLink()
Get the schema |
void |
validate()
Validates the instance. |
Property |
withArrayValueSeparator(String arrayValueSeparator)
Set the array |
Property |
withEnumValidValues(List<ProfileEnumValidValuesFormat> enumValidValues)
Set the enum |
Property |
withFieldName(String fieldName)
Set the field |
Property |
withFieldType(String fieldType)
Set the field |
Property |
withIsArray(Boolean isArray)
Set the is |
Property |
withIsAvailableInGraph(Boolean isAvailableInGraph)
Set the is |
Property |
withIsEnum(Boolean isEnum)
Set the is |
Property |
withIsFlagEnum(Boolean isFlagEnum)
Set the is |
Property |
withIsImage(Boolean isImage)
Set the is |
Property |
withIsLocalizedString(Boolean isLocalizedString)
Set the is |
Property |
withIsName(Boolean isName)
Set the is |
Property |
withIsRequired(Boolean isRequired)
Set the is |
Property |
withMaxLength(Integer maxLength)
Set the max |
Property |
withPropertyId(String propertyId)
Set the property |
Property |
withSchemaItemPropLink(String schemaItemPropLink)
Set the schema |
Methods inherited from java.lang.Object
Constructor Details
PropertyDefinition
public PropertyDefinition()
Creates an instance of PropertyDefinition class.
Method Details
arrayValueSeparator
public String arrayValueSeparator()
Get the arrayValueSeparator property: Array value separator for properties with isArray set.
Returns:
dataSourcePrecedenceRules
public List
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:
enumValidValues
public List
Get the enumValidValues property: Describes valid values for an enum property.
Returns:
fieldName
public String fieldName()
Get the fieldName property: Name of the property.
Returns:
fieldType
public String fieldType()
Get the fieldType property: Type of the property.
Returns:
isArray
public Boolean isArray()
Get the isArray property: Indicates if the property is actually an array of the fieldType above on the data api.
Returns:
isAvailableInGraph
public Boolean isAvailableInGraph()
Get the isAvailableInGraph property: Whether property is available in graph or not.
Returns:
isEnum
public Boolean isEnum()
Get the isEnum property: Indicates if the property is an enum.
Returns:
isFlagEnum
public Boolean isFlagEnum()
Get the isFlagEnum property: Indicates if the property is an flag enum.
Returns:
isImage
public Boolean isImage()
Get the isImage property: Whether the property is an Image.
Returns:
isLocalizedString
public Boolean isLocalizedString()
Get the isLocalizedString property: Whether the property is a localized string.
Returns:
isName
public Boolean isName()
Get the isName property: Whether the property is a name or a part of name.
Returns:
isRequired
public Boolean 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:
maxLength
public Integer maxLength()
Get the maxLength property: Max length of string. Used only if type is string.
Returns:
propertyId
public String propertyId()
Get the propertyId property: The ID associated with the property.
Returns:
schemaItemPropLink
public String schemaItemPropLink()
Get the schemaItemPropLink property: URL encoded schema.org item prop link for the property.
Returns:
validate
public void validate()
Validates the instance.
withArrayValueSeparator
public PropertyDefinition withArrayValueSeparator(String arrayValueSeparator)
Set the arrayValueSeparator property: Array value separator for properties with isArray set.
Parameters:
Returns:
withEnumValidValues
public PropertyDefinition withEnumValidValues(List
Set the enumValidValues property: Describes valid values for an enum property.
Parameters:
Returns:
withFieldName
public PropertyDefinition withFieldName(String fieldName)
Set the fieldName property: Name of the property.
Parameters:
Returns:
withFieldType
public PropertyDefinition withFieldType(String fieldType)
Set the fieldType property: Type of the property.
Parameters:
Returns:
withIsArray
public PropertyDefinition withIsArray(Boolean isArray)
Set the isArray property: Indicates if the property is actually an array of the fieldType above on the data api.
Parameters:
Returns:
withIsAvailableInGraph
public PropertyDefinition withIsAvailableInGraph(Boolean isAvailableInGraph)
Set the isAvailableInGraph property: Whether property is available in graph or not.
Parameters:
Returns:
withIsEnum
public PropertyDefinition withIsEnum(Boolean isEnum)
Set the isEnum property: Indicates if the property is an enum.
Parameters:
Returns:
withIsFlagEnum
public PropertyDefinition withIsFlagEnum(Boolean isFlagEnum)
Set the isFlagEnum property: Indicates if the property is an flag enum.
Parameters:
Returns:
withIsImage
public PropertyDefinition withIsImage(Boolean isImage)
Set the isImage property: Whether the property is an Image.
Parameters:
Returns:
withIsLocalizedString
public PropertyDefinition withIsLocalizedString(Boolean isLocalizedString)
Set the isLocalizedString property: Whether the property is a localized string.
Parameters:
Returns:
withIsName
public PropertyDefinition withIsName(Boolean isName)
Set the isName property: Whether the property is a name or a part of name.
Parameters:
Returns:
withIsRequired
public PropertyDefinition withIsRequired(Boolean isRequired)
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:
Returns:
withMaxLength
public PropertyDefinition withMaxLength(Integer maxLength)
Set the maxLength property: Max length of string. Used only if type is string.
Parameters:
Returns:
withPropertyId
public PropertyDefinition withPropertyId(String propertyId)
Set the propertyId property: The ID associated with the property.
Parameters:
Returns:
withSchemaItemPropLink
public PropertyDefinition withSchemaItemPropLink(String schemaItemPropLink)
Set the schemaItemPropLink property: URL encoded schema.org item prop link for the property.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for