
commonMain.aws.sdk.kotlin.services.auditmanager.model.FrameworkMetadata.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
/**
* The metadata of a framework, such as the name, ID, or description.
*/
public class FrameworkMetadata private constructor(builder: Builder) {
/**
* The compliance standard that's associated with the framework. For example, this could be PCI DSS or HIPAA.
*/
public val complianceType: kotlin.String? = builder.complianceType
/**
* The description of the framework.
*/
public val description: kotlin.String? = builder.description
/**
* 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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.auditmanager.model.FrameworkMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FrameworkMetadata(")
append("complianceType=*** Sensitive Data Redacted ***,")
append("description=$description,")
append("logo=$logo,")
append("name=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = complianceType?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (logo?.hashCode() ?: 0)
result = 31 * result + (name?.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 FrameworkMetadata
if (complianceType != other.complianceType) return false
if (description != other.description) return false
if (logo != other.logo) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.auditmanager.model.FrameworkMetadata = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The compliance standard that's associated with the framework. For example, this could be PCI DSS or HIPAA.
*/
public var complianceType: kotlin.String? = null
/**
* The description of the framework.
*/
public var description: kotlin.String? = 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.FrameworkMetadata) : this() {
this.complianceType = x.complianceType
this.description = x.description
this.logo = x.logo
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.auditmanager.model.FrameworkMetadata = FrameworkMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy