Class ThreatIntelligenceExternalReference
- java.lang.Object
-
- com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceExternalReference
-
public final class ThreatIntelligenceExternalReference extends Object
Describes external reference.
-
-
Constructor Summary
Constructors Constructor Description ThreatIntelligenceExternalReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
description()
Get the description property: External reference description.String
externalId()
Get the externalId property: External reference ID.Map<String,String>
hashes()
Get the hashes property: External reference hashes.String
sourceName()
Get the sourceName property: External reference source name.String
url()
Get the url property: External reference URL.void
validate()
Validates the instance.ThreatIntelligenceExternalReference
withDescription(String description)
Set the description property: External reference description.ThreatIntelligenceExternalReference
withExternalId(String externalId)
Set the externalId property: External reference ID.ThreatIntelligenceExternalReference
withHashes(Map<String,String> hashes)
Set the hashes property: External reference hashes.ThreatIntelligenceExternalReference
withSourceName(String sourceName)
Set the sourceName property: External reference source name.ThreatIntelligenceExternalReference
withUrl(String url)
Set the url property: External reference URL.
-
-
-
Method Detail
-
description
public String description()
Get the description property: External reference description.- Returns:
- the description value.
-
withDescription
public ThreatIntelligenceExternalReference withDescription(String description)
Set the description property: External reference description.- Parameters:
description
- the description value to set.- Returns:
- the ThreatIntelligenceExternalReference object itself.
-
externalId
public String externalId()
Get the externalId property: External reference ID.- Returns:
- the externalId value.
-
withExternalId
public ThreatIntelligenceExternalReference withExternalId(String externalId)
Set the externalId property: External reference ID.- Parameters:
externalId
- the externalId value to set.- Returns:
- the ThreatIntelligenceExternalReference object itself.
-
sourceName
public String sourceName()
Get the sourceName property: External reference source name.- Returns:
- the sourceName value.
-
withSourceName
public ThreatIntelligenceExternalReference withSourceName(String sourceName)
Set the sourceName property: External reference source name.- Parameters:
sourceName
- the sourceName value to set.- Returns:
- the ThreatIntelligenceExternalReference object itself.
-
url
public String url()
Get the url property: External reference URL.- Returns:
- the url value.
-
withUrl
public ThreatIntelligenceExternalReference withUrl(String url)
Set the url property: External reference URL.- Parameters:
url
- the url value to set.- Returns:
- the ThreatIntelligenceExternalReference object itself.
-
hashes
public Map<String,String> hashes()
Get the hashes property: External reference hashes.- Returns:
- the hashes value.
-
withHashes
public ThreatIntelligenceExternalReference withHashes(Map<String,String> hashes)
Set the hashes property: External reference hashes.- Parameters:
hashes
- the hashes value to set.- Returns:
- the ThreatIntelligenceExternalReference object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-