
commonMain.aws.sdk.kotlin.services.auditmanager.model.AssessmentFrameworkMetadata.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* The metadata that's associated with a standard framework or a custom framework.
*/
public class AssessmentFrameworkMetadata private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the framework.
*/
public val arn: kotlin.String? = builder.arn
/**
* The compliance type that the new custom framework supports, such as CIS or HIPAA.
*/
public val complianceType: kotlin.String? = builder.complianceType
/**
* The number of control sets that are associated with the framework.
*/
public val controlSetsCount: kotlin.Int = builder.controlSetsCount
/**
* The number of controls that are associated with the framework.
*/
public val controlsCount: kotlin.Int = builder.controlsCount
/**
* The time when the framework was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The description of the framework.
*/
public val description: kotlin.String? = builder.description
/**
* The unique identifier for the framework.
*/
public val id: kotlin.String? = builder.id
/**
* The time when the framework was most recently updated.
*/
public val lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedAt
/**
* The logo that's associated with the framework.
*/
public val logo: kotlin.String? = builder.logo
/**
* The name of the framework.
*/
public val name: kotlin.String? = builder.name
/**
* The framework type, such as a standard framework or a custom framework.
*/
public val type: aws.sdk.kotlin.services.auditmanager.model.FrameworkType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.auditmanager.model.AssessmentFrameworkMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssessmentFrameworkMetadata(")
append("arn=$arn,")
append("complianceType=*** Sensitive Data Redacted ***,")
append("controlSetsCount=$controlSetsCount,")
append("controlsCount=$controlsCount,")
append("createdAt=$createdAt,")
append("description=$description,")
append("id=$id,")
append("lastUpdatedAt=$lastUpdatedAt,")
append("logo=$logo,")
append("name=$name,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (complianceType?.hashCode() ?: 0)
result = 31 * result + (controlSetsCount)
result = 31 * result + (controlsCount)
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedAt?.hashCode() ?: 0)
result = 31 * result + (logo?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (type?.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 AssessmentFrameworkMetadata
if (arn != other.arn) return false
if (complianceType != other.complianceType) return false
if (controlSetsCount != other.controlSetsCount) return false
if (controlsCount != other.controlsCount) return false
if (createdAt != other.createdAt) return false
if (description != other.description) return false
if (id != other.id) return false
if (lastUpdatedAt != other.lastUpdatedAt) return false
if (logo != other.logo) return false
if (name != other.name) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.auditmanager.model.AssessmentFrameworkMetadata = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the framework.
*/
public var arn: kotlin.String? = null
/**
* The compliance type that the new custom framework supports, such as CIS or HIPAA.
*/
public var complianceType: kotlin.String? = null
/**
* The number of control sets that are associated with the framework.
*/
public var controlSetsCount: kotlin.Int = 0
/**
* The number of controls that are associated with the framework.
*/
public var controlsCount: kotlin.Int = 0
/**
* The time when the framework was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description of the framework.
*/
public var description: kotlin.String? = null
/**
* The unique identifier for the framework.
*/
public var id: kotlin.String? = null
/**
* The time when the framework was most recently updated.
*/
public var lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The logo that's associated with the framework.
*/
public var logo: kotlin.String? = null
/**
* The name of the framework.
*/
public var name: kotlin.String? = null
/**
* The framework type, such as a standard framework or a custom framework.
*/
public var type: aws.sdk.kotlin.services.auditmanager.model.FrameworkType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.AssessmentFrameworkMetadata) : this() {
this.arn = x.arn
this.complianceType = x.complianceType
this.controlSetsCount = x.controlSetsCount
this.controlsCount = x.controlsCount
this.createdAt = x.createdAt
this.description = x.description
this.id = x.id
this.lastUpdatedAt = x.lastUpdatedAt
this.logo = x.logo
this.name = x.name
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.auditmanager.model.AssessmentFrameworkMetadata = AssessmentFrameworkMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy