
commonMain.aws.sdk.kotlin.services.wellarchitected.model.UpdateWorkloadShareResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* Input for Update Workload Share
*/
public class UpdateWorkloadShareResponse private constructor(builder: Builder) {
/**
* The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.
*/
public val workloadId: kotlin.String? = builder.workloadId
/**
* A workload share return object.
*/
public val workloadShare: aws.sdk.kotlin.services.wellarchitected.model.WorkloadShare? = builder.workloadShare
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.UpdateWorkloadShareResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateWorkloadShareResponse(")
append("workloadId=$workloadId,")
append("workloadShare=$workloadShare")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = workloadId?.hashCode() ?: 0
result = 31 * result + (workloadShare?.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 UpdateWorkloadShareResponse
if (workloadId != other.workloadId) return false
if (workloadShare != other.workloadShare) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.UpdateWorkloadShareResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.
*/
public var workloadId: kotlin.String? = null
/**
* A workload share return object.
*/
public var workloadShare: aws.sdk.kotlin.services.wellarchitected.model.WorkloadShare? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.UpdateWorkloadShareResponse) : this() {
this.workloadId = x.workloadId
this.workloadShare = x.workloadShare
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.UpdateWorkloadShareResponse = UpdateWorkloadShareResponse(this)
/**
* construct an [aws.sdk.kotlin.services.wellarchitected.model.WorkloadShare] inside the given [block]
*/
public fun workloadShare(block: aws.sdk.kotlin.services.wellarchitected.model.WorkloadShare.Builder.() -> kotlin.Unit) {
this.workloadShare = aws.sdk.kotlin.services.wellarchitected.model.WorkloadShare.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy