java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.securityinsights.models.ResourceWithEtag
com.azure.resourcemanager.securityinsights.models.MetadataPatch

public final class MetadataPatch extends ResourceWithEtag
Metadata patch request body.
  • Constructor Details

    • MetadataPatch

      public MetadataPatch()
  • Method Details

    • withEtag

      public MetadataPatch withEtag(String etag)
      Set the etag property: Etag of the azure resource.
      Overrides:
      withEtag in class ResourceWithEtag
      Parameters:
      etag - the etag value to set.
      Returns:
      the ResourceWithEtag object itself.
    • 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch object itself.
    • kind

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

      public MetadataPatch withKind(Kind kind)
      Set the kind property: The kind of content the metadata is for.
      Parameters:
      kind - the kind value to set.
      Returns:
      the MetadataPatch 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 MetadataPatch 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 MetadataPatch object itself.
    • author

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

      public MetadataPatch withAuthor(MetadataAuthor author)
      Set the author property: The creator of the content item.
      Parameters:
      author - the author value to set.
      Returns:
      the MetadataPatch 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch object itself.
    • categories

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

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

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

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

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

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

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

      public MetadataPatch withLastPublishDate(LocalDate lastPublishDate)
      Set the lastPublishDate property: last publish date for the solution content item.
      Parameters:
      lastPublishDate - the lastPublishDate value to set.
      Returns:
      the MetadataPatch 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch object itself.
    • threatAnalysisTactics

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

      public MetadataPatch withThreatAnalysisTactics(List<String> threatAnalysisTactics)
      Set the threatAnalysisTactics property: the tactics the resource covers.
      Parameters:
      threatAnalysisTactics - the threatAnalysisTactics value to set.
      Returns:
      the MetadataPatch 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch 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 MetadataPatch object itself.
    • validate

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