Class MetadataDependencies
- java.lang.Object
-
- com.azure.resourcemanager.securityinsights.models.MetadataDependencies
-
public final class MetadataDependencies extends Object
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
Constructors Constructor Description MetadataDependencies()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
contentId()
Get the contentId property: Id of the content item we depend on.List<MetadataDependencies>
criteria()
Get the criteria property: This is the list of dependencies we must fulfill, according to the AND/OR operator.Kind
kind()
Get the kind property: Type of the content item we depend on.String
name()
Get the name property: Name of the content item.Operator
operator()
Get the operator property: Operator used for list of dependencies in criteria array.void
validate()
Validates the instance.String
version()
Get the version property: Version of the the content item we depend on.MetadataDependencies
withContentId(String contentId)
Set the contentId property: Id of the content item we depend on.MetadataDependencies
withCriteria(List<MetadataDependencies> criteria)
Set the criteria property: This is the list of dependencies we must fulfill, according to the AND/OR operator.MetadataDependencies
withKind(Kind kind)
Set the kind property: Type of the content item we depend on.MetadataDependencies
withName(String name)
Set the name property: Name of the content item.MetadataDependencies
withOperator(Operator operator)
Set the operator property: Operator used for list of dependencies in criteria array.MetadataDependencies
withVersion(String version)
Set the version property: Version of the the content item we depend on.
-
-
-
Method Detail
-
contentId
public String contentId()
Get the contentId property: Id of the content item we depend on.- Returns:
- the contentId value.
-
withContentId
public MetadataDependencies withContentId(String contentId)
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
public Kind kind()
Get the kind property: Type of the content item we depend on.- Returns:
- the kind value.
-
withKind
public MetadataDependencies withKind(Kind kind)
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
public String 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
public MetadataDependencies withVersion(String version)
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
public String name()
Get the name property: Name of the content item.- Returns:
- the name value.
-
withName
public MetadataDependencies withName(String name)
Set the name property: Name of the content item.- Parameters:
name
- the name value to set.- Returns:
- the MetadataDependencies object itself.
-
operator
public Operator operator()
Get the operator property: Operator used for list of dependencies in criteria array.- Returns:
- the operator value.
-
withOperator
public MetadataDependencies withOperator(Operator operator)
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
public List<MetadataDependencies> 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
public MetadataDependencies withCriteria(List<MetadataDependencies> criteria)
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.
-
-