Class MetadataPropertiesPatch

java.lang.Object
com.azure.resourcemanager.securityinsights.fluent.models.MetadataPropertiesPatch

public final class MetadataPropertiesPatch extends Object
Metadata property bag for patch requests. This is the same as the MetadataProperties, but with nothing required.
  • Constructor Details

    • MetadataPropertiesPatch

      public MetadataPropertiesPatch()
  • Method Details

    • contentId

      public String contentId()
      Get the contentId property: Static ID for the content. Used to identify dependencies and content from solutions or community. Hard-coded/static for out of the box content and solutions. Dynamic for user-created. This is the resource name.
      Returns:
      the contentId value.
    • withContentId

      public MetadataPropertiesPatch withContentId(String contentId)
      Set the contentId property: Static ID for the content. Used to identify dependencies and content from solutions or community. Hard-coded/static for out of the box content and solutions. Dynamic for user-created. This is the resource name.
      Parameters:
      contentId - the contentId value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • parentId

      public String parentId()
      Get the parentId property: Full parent resource ID of the content item the metadata is for. This is the full resource ID including the scope (subscription and resource group).
      Returns:
      the parentId value.
    • withParentId

      public MetadataPropertiesPatch withParentId(String parentId)
      Set the parentId property: Full parent resource ID of the content item the metadata is for. This is the full resource ID including the scope (subscription and resource group).
      Parameters:
      parentId - the parentId value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • version

      public String version()
      Get the version property: Version of the content. Default and recommended format is numeric (e.g. 1, 1.0, 1.0.0, 1.0.0.0), following ARM template best practices. Can also be any string, but then we cannot guarantee any version checks.
      Returns:
      the version value.
    • withVersion

      public MetadataPropertiesPatch withVersion(String version)
      Set the version property: Version of the content. Default and recommended format is numeric (e.g. 1, 1.0, 1.0.0, 1.0.0.0), following ARM template best practices. Can also be any string, but then we cannot guarantee any version checks.
      Parameters:
      version - the version value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • kind

      public Kind kind()
      Get the kind property: The kind of content the metadata is for.
      Returns:
      the kind value.
    • withKind

      public MetadataPropertiesPatch withKind(Kind kind)
      Set the kind property: The kind of content the metadata is for.
      Parameters:
      kind - the kind value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • source

      public MetadataSource source()
      Get the source property: Source of the content. This is where/how it was created.
      Returns:
      the source value.
    • withSource

      public MetadataPropertiesPatch withSource(MetadataSource source)
      Set the source property: Source of the content. This is where/how it was created.
      Parameters:
      source - the source value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • author

      public MetadataAuthor author()
      Get the author property: The creator of the content item.
      Returns:
      the author value.
    • withAuthor

      public MetadataPropertiesPatch withAuthor(MetadataAuthor author)
      Set the author property: The creator of the content item.
      Parameters:
      author - the author value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • support

      public MetadataSupport support()
      Get the support property: Support information for the metadata - type, name, contact information.
      Returns:
      the support value.
    • withSupport

      public MetadataPropertiesPatch withSupport(MetadataSupport support)
      Set the support property: Support information for the metadata - type, name, contact information.
      Parameters:
      support - the support value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • dependencies

      public MetadataDependencies dependencies()
      Get the dependencies property: 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 formats.
      Returns:
      the dependencies value.
    • withDependencies

      public MetadataPropertiesPatch withDependencies(MetadataDependencies dependencies)
      Set the dependencies property: 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 formats.
      Parameters:
      dependencies - the dependencies value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • categories

      public MetadataCategories categories()
      Get the categories property: Categories for the solution content item.
      Returns:
      the categories value.
    • withCategories

      public MetadataPropertiesPatch withCategories(MetadataCategories categories)
      Set the categories property: Categories for the solution content item.
      Parameters:
      categories - the categories value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • providers

      public List<String> providers()
      Get the providers property: Providers for the solution content item.
      Returns:
      the providers value.
    • withProviders

      public MetadataPropertiesPatch withProviders(List<String> providers)
      Set the providers property: Providers for the solution content item.
      Parameters:
      providers - the providers value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • firstPublishDate

      public LocalDate firstPublishDate()
      Get the firstPublishDate property: first publish date solution content item.
      Returns:
      the firstPublishDate value.
    • withFirstPublishDate

      public MetadataPropertiesPatch withFirstPublishDate(LocalDate firstPublishDate)
      Set the firstPublishDate property: first publish date solution content item.
      Parameters:
      firstPublishDate - the firstPublishDate value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • lastPublishDate

      public LocalDate lastPublishDate()
      Get the lastPublishDate property: last publish date for the solution content item.
      Returns:
      the lastPublishDate value.
    • withLastPublishDate

      public MetadataPropertiesPatch withLastPublishDate(LocalDate lastPublishDate)
      Set the lastPublishDate property: last publish date for the solution content item.
      Parameters:
      lastPublishDate - the lastPublishDate value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • customVersion

      public String customVersion()
      Get the customVersion property: The custom version of the content. A optional free text.
      Returns:
      the customVersion value.
    • withCustomVersion

      public MetadataPropertiesPatch withCustomVersion(String customVersion)
      Set the customVersion property: The custom version of the content. A optional free text.
      Parameters:
      customVersion - the customVersion value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • contentSchemaVersion

      public String contentSchemaVersion()
      Get the contentSchemaVersion property: Schema version of the content. Can be used to distinguish between different flow based on the schema version.
      Returns:
      the contentSchemaVersion value.
    • withContentSchemaVersion

      public MetadataPropertiesPatch withContentSchemaVersion(String contentSchemaVersion)
      Set the contentSchemaVersion property: Schema version of the content. Can be used to distinguish between different flow based on the schema version.
      Parameters:
      contentSchemaVersion - the contentSchemaVersion value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • icon

      public String icon()
      Get the icon property: the icon identifier. this id can later be fetched from the solution template.
      Returns:
      the icon value.
    • withIcon

      public MetadataPropertiesPatch withIcon(String icon)
      Set the icon property: the icon identifier. this id can later be fetched from the solution template.
      Parameters:
      icon - the icon value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • threatAnalysisTactics

      public List<String> threatAnalysisTactics()
      Get the threatAnalysisTactics property: the tactics the resource covers.
      Returns:
      the threatAnalysisTactics value.
    • withThreatAnalysisTactics

      public MetadataPropertiesPatch withThreatAnalysisTactics(List<String> threatAnalysisTactics)
      Set the threatAnalysisTactics property: the tactics the resource covers.
      Parameters:
      threatAnalysisTactics - the threatAnalysisTactics value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • threatAnalysisTechniques

      public List<String> threatAnalysisTechniques()
      Get the threatAnalysisTechniques property: the techniques the resource covers, these have to be aligned with the tactics being used.
      Returns:
      the threatAnalysisTechniques value.
    • withThreatAnalysisTechniques

      public MetadataPropertiesPatch withThreatAnalysisTechniques(List<String> threatAnalysisTechniques)
      Set the threatAnalysisTechniques property: the techniques the resource covers, these have to be aligned with the tactics being used.
      Parameters:
      threatAnalysisTechniques - the threatAnalysisTechniques value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • previewImages

      public List<String> previewImages()
      Get the previewImages property: preview image file names. These will be taken from the solution artifacts.
      Returns:
      the previewImages value.
    • withPreviewImages

      public MetadataPropertiesPatch withPreviewImages(List<String> previewImages)
      Set the previewImages property: preview image file names. These will be taken from the solution artifacts.
      Parameters:
      previewImages - the previewImages value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • previewImagesDark

      public List<String> previewImagesDark()
      Get the previewImagesDark property: preview image file names. These will be taken from the solution artifacts. used for dark theme support.
      Returns:
      the previewImagesDark value.
    • withPreviewImagesDark

      public MetadataPropertiesPatch withPreviewImagesDark(List<String> previewImagesDark)
      Set the previewImagesDark property: preview image file names. These will be taken from the solution artifacts. used for dark theme support.
      Parameters:
      previewImagesDark - the previewImagesDark value to set.
      Returns:
      the MetadataPropertiesPatch object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.