commonMain.aws.sdk.kotlin.services.codegurusecurity.model.ResourceId.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codegurusecurity-jvm Show documentation
Show all versions of codegurusecurity-jvm Show documentation
The AWS SDK for Kotlin client for CodeGuru Security
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codegurusecurity.model
/**
* The identifier for a resource object that contains resources to scan. Specifying a codeArtifactId is required to create a scan.
*/
public sealed class ResourceId {
/**
* The identifier for the code file uploaded to the resource object. Returned by `CreateUploadUrl` when you upload resources to be scanned.
*/
public data class CodeArtifactId(val value: kotlin.String) : aws.sdk.kotlin.services.codegurusecurity.model.ResourceId() {
}
public object SdkUnknown : aws.sdk.kotlin.services.codegurusecurity.model.ResourceId() {
}
/**
* Casts this [ResourceId] as a [CodeArtifactId] and retrieves its [kotlin.String] value. Throws an exception if the [ResourceId] is not a
* [CodeArtifactId].
*/
public fun asCodeArtifactId(): kotlin.String = (this as ResourceId.CodeArtifactId).value
/**
* Casts this [ResourceId] as a [CodeArtifactId] and retrieves its [kotlin.String] value. Returns null if the [ResourceId] is not a [CodeArtifactId].
*/
public fun asCodeArtifactIdOrNull(): kotlin.String? = (this as? ResourceId.CodeArtifactId)?.value
}