commonMain.aws.sdk.kotlin.services.codedeploy.model.RawString.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codedeploy-jvm Show documentation
Show all versions of codedeploy-jvm Show documentation
The AWS SDK for Kotlin client for CodeDeploy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codedeploy.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A revision for an Lambda deployment that is a YAML-formatted or JSON-formatted string. For Lambda deployments, the revision is the same as the AppSpec file.
*/
@Deprecated("RawString and String revision type are deprecated, use AppSpecContent type instead.")
public class RawString private constructor(builder: Builder) {
/**
* The YAML-formatted or JSON-formatted revision string. It includes information about which Lambda function to update and optional Lambda functions that validate deployment lifecycle events.
*/
public val content: kotlin.String? = builder.content
/**
* The SHA256 hash value of the revision content.
*/
public val sha256: kotlin.String? = builder.sha256
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.RawString = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RawString(")
append("content=$content,")
append("sha256=$sha256")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = content?.hashCode() ?: 0
result = 31 * result + (sha256?.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 RawString
if (content != other.content) return false
if (sha256 != other.sha256) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.RawString = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The YAML-formatted or JSON-formatted revision string. It includes information about which Lambda function to update and optional Lambda functions that validate deployment lifecycle events.
*/
public var content: kotlin.String? = null
/**
* The SHA256 hash value of the revision content.
*/
public var sha256: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.RawString) : this() {
this.content = x.content
this.sha256 = x.sha256
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.RawString = RawString(this)
internal fun correctErrors(): Builder {
return this
}
}
}