
commonMain.aws.sdk.kotlin.services.auditmanager.model.GetEvidenceFoldersByAssessmentControlRequest.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 GetEvidenceFoldersByAssessmentControlRequest private constructor(builder: Builder) {
/**
* The identifier for the assessment.
*/
public val assessmentId: kotlin.String? = builder.assessmentId
/**
* The identifier for the control.
*/
public val controlId: kotlin.String? = builder.controlId
/**
* The identifier for the control set.
*/
public val controlSetId: kotlin.String? = builder.controlSetId
/**
* Represents the maximum number of results on a page or for an API request call.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* The pagination token that's used to fetch the next set of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.auditmanager.model.GetEvidenceFoldersByAssessmentControlRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetEvidenceFoldersByAssessmentControlRequest(")
append("assessmentId=$assessmentId,")
append("controlId=$controlId,")
append("controlSetId=$controlSetId,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assessmentId?.hashCode() ?: 0
result = 31 * result + (controlId?.hashCode() ?: 0)
result = 31 * result + (controlSetId?.hashCode() ?: 0)
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.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 GetEvidenceFoldersByAssessmentControlRequest
if (assessmentId != other.assessmentId) return false
if (controlId != other.controlId) return false
if (controlSetId != other.controlSetId) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.auditmanager.model.GetEvidenceFoldersByAssessmentControlRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier for the assessment.
*/
public var assessmentId: kotlin.String? = null
/**
* The identifier for the control.
*/
public var controlId: kotlin.String? = null
/**
* The identifier for the control set.
*/
public var controlSetId: kotlin.String? = null
/**
* Represents the maximum number of results on a page or for an API request call.
*/
public var maxResults: kotlin.Int? = null
/**
* The pagination token that's used to fetch the next set of results.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.GetEvidenceFoldersByAssessmentControlRequest) : this() {
this.assessmentId = x.assessmentId
this.controlId = x.controlId
this.controlSetId = x.controlSetId
this.maxResults = x.maxResults
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.auditmanager.model.GetEvidenceFoldersByAssessmentControlRequest = GetEvidenceFoldersByAssessmentControlRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy