Package com.datadog.api.client.v2.model
Class McpScanRequestDataAttributes
java.lang.Object
com.datadog.api.client.v2.model.McpScanRequestDataAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class McpScanRequestDataAttributes
extends Object
The attributes of an MCP SCA scan request, describing the libraries to scan and their context.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMcpScanRequestDataAttributes(String commitHash, List<McpScanRequestDataAttributesLibrariesItems> libraries, String resourceName) -
Method Summary
Modifier and TypeMethodDescriptionaddLibrariesItem(McpScanRequestDataAttributesLibrariesItems librariesItem) commitHash(String commitHash) booleanReturn true if this McpScanRequestDataAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The commit hash of the source code being scanned.The list of libraries to scan for vulnerabilities.The name of the resource (typically the repository or project name) being scanned.inthashCode()libraries(List<McpScanRequestDataAttributesLibrariesItems> libraries) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.resourceName(String resourceName) voidsetCommitHash(String commitHash) voidvoidsetResourceName(String resourceName) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_COMMIT_HASH
- See Also:
-
JSON_PROPERTY_LIBRARIES
- See Also:
-
JSON_PROPERTY_RESOURCE_NAME
- See Also:
-
-
Constructor Details
-
McpScanRequestDataAttributes
public McpScanRequestDataAttributes() -
McpScanRequestDataAttributes
public McpScanRequestDataAttributes(String commitHash, List<McpScanRequestDataAttributesLibrariesItems> libraries, String resourceName)
-
-
Method Details
-
commitHash
-
getCommitHash
The commit hash of the source code being scanned.- Returns:
- commitHash
-
setCommitHash
-
libraries
public McpScanRequestDataAttributes libraries(List<McpScanRequestDataAttributesLibrariesItems> libraries) -
addLibrariesItem
public McpScanRequestDataAttributes addLibrariesItem(McpScanRequestDataAttributesLibrariesItems librariesItem) -
getLibraries
The list of libraries to scan for vulnerabilities.- Returns:
- libraries
-
setLibraries
-
resourceName
-
getResourceName
The name of the resource (typically the repository or project name) being scanned.- Returns:
- resourceName
-
setResourceName
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- McpScanRequestDataAttributes
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this McpScanRequestDataAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-