java.lang.Object
com.azure.resourcemanager.securityinsights.models.MetadataSource

public final class MetadataSource extends Object
The original source of the content item, where it comes from.
  • Constructor Details

    • MetadataSource

      public MetadataSource()
  • Method Details

    • kind

      public SourceKind kind()
      Get the kind property: Source type of the content.
      Returns:
      the kind value.
    • withKind

      public MetadataSource withKind(SourceKind kind)
      Set the kind property: Source type of the content.
      Parameters:
      kind - the kind value to set.
      Returns:
      the MetadataSource object itself.
    • name

      public String name()
      Get the name property: Name of the content source. The repo name, solution name, LA workspace name etc.
      Returns:
      the name value.
    • withName

      public MetadataSource withName(String name)
      Set the name property: Name of the content source. The repo name, solution name, LA workspace name etc.
      Parameters:
      name - the name value to set.
      Returns:
      the MetadataSource object itself.
    • sourceId

      public String sourceId()
      Get the sourceId property: ID of the content source. The solution ID, workspace ID, etc.
      Returns:
      the sourceId value.
    • withSourceId

      public MetadataSource withSourceId(String sourceId)
      Set the sourceId property: ID of the content source. The solution ID, workspace ID, etc.
      Parameters:
      sourceId - the sourceId value to set.
      Returns:
      the MetadataSource object itself.
    • validate

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