All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.codegurusecurity.model.ResourceId.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy