
commonMain.aws.sdk.kotlin.services.auditmanager.model.StartAssessmentFrameworkShareRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.auditmanager.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartAssessmentFrameworkShareRequest private constructor(builder: Builder) {
/**
* An optional comment from the sender about the share request.
*/
public val comment: kotlin.String? = builder.comment
/**
* The Amazon Web Services account of the recipient.
*/
public val destinationAccount: kotlin.String? = builder.destinationAccount
/**
* The Amazon Web Services Region of the recipient.
*/
public val destinationRegion: kotlin.String? = builder.destinationRegion
/**
* The unique identifier for the custom framework to be shared.
*/
public val frameworkId: kotlin.String? = builder.frameworkId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.auditmanager.model.StartAssessmentFrameworkShareRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartAssessmentFrameworkShareRequest(")
append("comment=$comment,")
append("destinationAccount=$destinationAccount,")
append("destinationRegion=$destinationRegion,")
append("frameworkId=$frameworkId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = comment?.hashCode() ?: 0
result = 31 * result + (destinationAccount?.hashCode() ?: 0)
result = 31 * result + (destinationRegion?.hashCode() ?: 0)
result = 31 * result + (frameworkId?.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 StartAssessmentFrameworkShareRequest
if (comment != other.comment) return false
if (destinationAccount != other.destinationAccount) return false
if (destinationRegion != other.destinationRegion) return false
if (frameworkId != other.frameworkId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.auditmanager.model.StartAssessmentFrameworkShareRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An optional comment from the sender about the share request.
*/
public var comment: kotlin.String? = null
/**
* The Amazon Web Services account of the recipient.
*/
public var destinationAccount: kotlin.String? = null
/**
* The Amazon Web Services Region of the recipient.
*/
public var destinationRegion: kotlin.String? = null
/**
* The unique identifier for the custom framework to be shared.
*/
public var frameworkId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.StartAssessmentFrameworkShareRequest) : this() {
this.comment = x.comment
this.destinationAccount = x.destinationAccount
this.destinationRegion = x.destinationRegion
this.frameworkId = x.frameworkId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.auditmanager.model.StartAssessmentFrameworkShareRequest = StartAssessmentFrameworkShareRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy