Class MetadataSource
- 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 Summary
Constructors Constructor Description MetadataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceKind
kind()
Get the kind property: Source type of the content.String
name()
Get the name property: Name of the content source.String
sourceId()
Get the sourceId property: ID of the content source.void
validate()
Validates the instance.MetadataSource
withKind(SourceKind kind)
Set the kind property: Source type of the content.MetadataSource
withName(String name)
Set the name property: Name of the content source.MetadataSource
withSourceId(String sourceId)
Set the sourceId property: ID of the content source.
-
-
-
Method Detail
-
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.
-
-