Class MetadataDependencies
java.lang.Object
com.azure.resourcemanager.securityinsights.models.MetadataDependencies
Dependencies for the content item, what other content items it requires to work. Can describe more complex
dependencies using a recursive/nested structure. For a single dependency an id/kind/version can be supplied or
operator/criteria for complex dependencies.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the contentId property: Id of the content item we depend on.criteria()
Get the criteria property: This is the list of dependencies we must fulfill, according to the AND/OR operator.kind()
Get the kind property: Type of the content item we depend on.name()
Get the name property: Name of the content item.operator()
Get the operator property: Operator used for list of dependencies in criteria array.void
validate()
Validates the instance.version()
Get the version property: Version of the the content item we depend on.withContentId
(String contentId) Set the contentId property: Id of the content item we depend on.withCriteria
(List<MetadataDependencies> criteria) Set the criteria property: This is the list of dependencies we must fulfill, according to the AND/OR operator.Set the kind property: Type of the content item we depend on.Set the name property: Name of the content item.withOperator
(Operator operator) Set the operator property: Operator used for list of dependencies in criteria array.withVersion
(String version) Set the version property: Version of the the content item we depend on.
-
Constructor Details
-
MetadataDependencies
public MetadataDependencies()
-
-
Method Details
-
contentId
Get the contentId property: Id of the content item we depend on.- Returns:
- the contentId value.
-
withContentId
Set the contentId property: Id of the content item we depend on.- Parameters:
contentId
- the contentId value to set.- Returns:
- the MetadataDependencies object itself.
-
kind
Get the kind property: Type of the content item we depend on.- Returns:
- the kind value.
-
withKind
Set the kind property: Type of the content item we depend on.- Parameters:
kind
- the kind value to set.- Returns:
- the MetadataDependencies object itself.
-
version
Get the version property: Version of the the content item we depend on. Can be blank, * or missing to indicate any version fulfills the dependency. If version does not match our defined numeric format then an exact match is required.- Returns:
- the version value.
-
withVersion
Set the version property: Version of the the content item we depend on. Can be blank, * or missing to indicate any version fulfills the dependency. If version does not match our defined numeric format then an exact match is required.- Parameters:
version
- the version value to set.- Returns:
- the MetadataDependencies object itself.
-
name
Get the name property: Name of the content item.- Returns:
- the name value.
-
withName
Set the name property: Name of the content item.- Parameters:
name
- the name value to set.- Returns:
- the MetadataDependencies object itself.
-
operator
Get the operator property: Operator used for list of dependencies in criteria array.- Returns:
- the operator value.
-
withOperator
Set the operator property: Operator used for list of dependencies in criteria array.- Parameters:
operator
- the operator value to set.- Returns:
- the MetadataDependencies object itself.
-
criteria
Get the criteria property: This is the list of dependencies we must fulfill, according to the AND/OR operator.- Returns:
- the criteria value.
-
withCriteria
Set the criteria property: This is the list of dependencies we must fulfill, according to the AND/OR operator.- Parameters:
criteria
- the criteria value to set.- Returns:
- the MetadataDependencies object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-