Class MetadataSource
java.lang.Object
com.azure.resourcemanager.securityinsights.models.MetadataSource
The original source of the content item, where it comes from.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionkind()
Get the kind property: Source type of the content.name()
Get the name property: Name of the content source.sourceId()
Get the sourceId property: ID of the content source.void
validate()
Validates the instance.withKind
(SourceKind kind) Set the kind property: Source type of the content.Set the name property: Name of the content source.withSourceId
(String sourceId) Set the sourceId property: ID of the content source.
-
Constructor Details
-
MetadataSource
public MetadataSource()
-
-
Method Details
-
kind
Get the kind property: Source type of the content.- Returns:
- the kind value.
-
withKind
Set the kind property: Source type of the content.- Parameters:
kind
- the kind value to set.- Returns:
- the MetadataSource object itself.
-
name
Get the name property: Name of the content source. The repo name, solution name, LA workspace name etc.- Returns:
- the name value.
-
withName
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
Get the sourceId property: ID of the content source. The solution ID, workspace ID, etc.- Returns:
- the sourceId value.
-
withSourceId
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.
-