commonMain.aws.sdk.kotlin.services.codegurusecurity.model.CreateUploadUrlRequest.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codegurusecurity.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateUploadUrlRequest private constructor(builder: Builder) {
/**
* The name of the scan that will use the uploaded resource. CodeGuru Security uses the unique scan name to track revisions across multiple scans of the same resource. Use this `scanName` when you call `CreateScan` on the code resource you upload to this URL.
*/
public val scanName: kotlin.String? = builder.scanName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codegurusecurity.model.CreateUploadUrlRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateUploadUrlRequest(")
append("scanName=$scanName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = scanName?.hashCode() ?: 0
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as CreateUploadUrlRequest
if (scanName != other.scanName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codegurusecurity.model.CreateUploadUrlRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the scan that will use the uploaded resource. CodeGuru Security uses the unique scan name to track revisions across multiple scans of the same resource. Use this `scanName` when you call `CreateScan` on the code resource you upload to this URL.
*/
public var scanName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codegurusecurity.model.CreateUploadUrlRequest) : this() {
this.scanName = x.scanName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codegurusecurity.model.CreateUploadUrlRequest = CreateUploadUrlRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}