Class EntityMapping
- java.lang.Object
-
- com.azure.resourcemanager.securityinsights.models.EntityMapping
-
public final class EntityMapping extends Object
Single entity mapping for the alert rule.
-
-
Constructor Summary
Constructors Constructor Description EntityMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityMappingType
entityType()
Get the entityType property: The V3 type of the mapped entity.List<FieldMapping>
fieldMappings()
Get the fieldMappings property: array of field mappings for the given entity mapping.void
validate()
Validates the instance.EntityMapping
withEntityType(EntityMappingType entityType)
Set the entityType property: The V3 type of the mapped entity.EntityMapping
withFieldMappings(List<FieldMapping> fieldMappings)
Set the fieldMappings property: array of field mappings for the given entity mapping.
-
-
-
Method Detail
-
entityType
public EntityMappingType entityType()
Get the entityType property: The V3 type of the mapped entity.- Returns:
- the entityType value.
-
withEntityType
public EntityMapping withEntityType(EntityMappingType entityType)
Set the entityType property: The V3 type of the mapped entity.- Parameters:
entityType
- the entityType value to set.- Returns:
- the EntityMapping object itself.
-
fieldMappings
public List<FieldMapping> fieldMappings()
Get the fieldMappings property: array of field mappings for the given entity mapping.- Returns:
- the fieldMappings value.
-
withFieldMappings
public EntityMapping withFieldMappings(List<FieldMapping> fieldMappings)
Set the fieldMappings property: array of field mappings for the given entity mapping.- Parameters:
fieldMappings
- the fieldMappings value to set.- Returns:
- the EntityMapping object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-