
commonMain.aws.sdk.kotlin.services.auditmanager.model.UpdateAssessmentRequest.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 UpdateAssessmentRequest private constructor(builder: Builder) {
/**
* The description of the assessment.
*/
public val assessmentDescription: kotlin.String? = builder.assessmentDescription
/**
* The unique identifier for the assessment.
*/
public val assessmentId: kotlin.String? = builder.assessmentId
/**
* The name of the assessment to be updated.
*/
public val assessmentName: kotlin.String? = builder.assessmentName
/**
* The assessment report storage destination for the assessment that's being updated.
*/
public val assessmentReportsDestination: aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination? = builder.assessmentReportsDestination
/**
* The list of roles for the assessment.
*/
public val roles: List? = builder.roles
/**
* The scope of the assessment.
*/
public val scope: aws.sdk.kotlin.services.auditmanager.model.Scope? = builder.scope
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.auditmanager.model.UpdateAssessmentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateAssessmentRequest(")
append("assessmentDescription=*** Sensitive Data Redacted ***,")
append("assessmentId=$assessmentId,")
append("assessmentName=*** Sensitive Data Redacted ***,")
append("assessmentReportsDestination=*** Sensitive Data Redacted ***,")
append("roles=*** Sensitive Data Redacted ***,")
append("scope=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assessmentDescription?.hashCode() ?: 0
result = 31 * result + (assessmentId?.hashCode() ?: 0)
result = 31 * result + (assessmentName?.hashCode() ?: 0)
result = 31 * result + (assessmentReportsDestination?.hashCode() ?: 0)
result = 31 * result + (roles?.hashCode() ?: 0)
result = 31 * result + (scope?.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 UpdateAssessmentRequest
if (assessmentDescription != other.assessmentDescription) return false
if (assessmentId != other.assessmentId) return false
if (assessmentName != other.assessmentName) return false
if (assessmentReportsDestination != other.assessmentReportsDestination) return false
if (roles != other.roles) return false
if (scope != other.scope) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.auditmanager.model.UpdateAssessmentRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The description of the assessment.
*/
public var assessmentDescription: kotlin.String? = null
/**
* The unique identifier for the assessment.
*/
public var assessmentId: kotlin.String? = null
/**
* The name of the assessment to be updated.
*/
public var assessmentName: kotlin.String? = null
/**
* The assessment report storage destination for the assessment that's being updated.
*/
public var assessmentReportsDestination: aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination? = null
/**
* The list of roles for the assessment.
*/
public var roles: List? = null
/**
* The scope of the assessment.
*/
public var scope: aws.sdk.kotlin.services.auditmanager.model.Scope? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.UpdateAssessmentRequest) : this() {
this.assessmentDescription = x.assessmentDescription
this.assessmentId = x.assessmentId
this.assessmentName = x.assessmentName
this.assessmentReportsDestination = x.assessmentReportsDestination
this.roles = x.roles
this.scope = x.scope
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.auditmanager.model.UpdateAssessmentRequest = UpdateAssessmentRequest(this)
/**
* construct an [aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination] inside the given [block]
*/
public fun assessmentReportsDestination(block: aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination.Builder.() -> kotlin.Unit) {
this.assessmentReportsDestination = aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.auditmanager.model.Scope] inside the given [block]
*/
public fun scope(block: aws.sdk.kotlin.services.auditmanager.model.Scope.Builder.() -> kotlin.Unit) {
this.scope = aws.sdk.kotlin.services.auditmanager.model.Scope.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy