
commonMain.aws.sdk.kotlin.services.auditmanager.model.GetAssessmentResponse.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 GetAssessmentResponse private constructor(builder: Builder) {
/**
* An entity that defines the scope of audit evidence collected by Audit Manager. An Audit Manager assessment is an implementation of an Audit Manager framework.
*/
public val assessment: aws.sdk.kotlin.services.auditmanager.model.Assessment? = builder.assessment
/**
* The wrapper that contains the Audit Manager role information of the current user. This includes the role type and IAM Amazon Resource Name (ARN).
*/
public val userRole: aws.sdk.kotlin.services.auditmanager.model.Role? = builder.userRole
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.auditmanager.model.GetAssessmentResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetAssessmentResponse(")
append("assessment=$assessment,")
append("userRole=$userRole")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assessment?.hashCode() ?: 0
result = 31 * result + (userRole?.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 GetAssessmentResponse
if (assessment != other.assessment) return false
if (userRole != other.userRole) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.auditmanager.model.GetAssessmentResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An entity that defines the scope of audit evidence collected by Audit Manager. An Audit Manager assessment is an implementation of an Audit Manager framework.
*/
public var assessment: aws.sdk.kotlin.services.auditmanager.model.Assessment? = null
/**
* The wrapper that contains the Audit Manager role information of the current user. This includes the role type and IAM Amazon Resource Name (ARN).
*/
public var userRole: aws.sdk.kotlin.services.auditmanager.model.Role? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.GetAssessmentResponse) : this() {
this.assessment = x.assessment
this.userRole = x.userRole
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.auditmanager.model.GetAssessmentResponse = GetAssessmentResponse(this)
/**
* construct an [aws.sdk.kotlin.services.auditmanager.model.Assessment] inside the given [block]
*/
public fun assessment(block: aws.sdk.kotlin.services.auditmanager.model.Assessment.Builder.() -> kotlin.Unit) {
this.assessment = aws.sdk.kotlin.services.auditmanager.model.Assessment.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.auditmanager.model.Role] inside the given [block]
*/
public fun userRole(block: aws.sdk.kotlin.services.auditmanager.model.Role.Builder.() -> kotlin.Unit) {
this.userRole = aws.sdk.kotlin.services.auditmanager.model.Role.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy