
commonMain.aws.sdk.kotlin.services.auditmanager.model.ServiceMetadata.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 that's associated with the Amazon Web Service.
*/
public class ServiceMetadata private constructor(builder: Builder) {
/**
* The category that the Amazon Web Service belongs to, such as compute, storage, or database.
*/
public val category: kotlin.String? = builder.category
/**
* The description of the Amazon Web Service.
*/
public val description: kotlin.String? = builder.description
/**
* The display name of the Amazon Web Service.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* The name of the Amazon Web Service.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.auditmanager.model.ServiceMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ServiceMetadata(")
append("category=$category,")
append("description=$description,")
append("displayName=$displayName,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = category?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (displayName?.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 ServiceMetadata
if (category != other.category) return false
if (description != other.description) return false
if (displayName != other.displayName) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.auditmanager.model.ServiceMetadata = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The category that the Amazon Web Service belongs to, such as compute, storage, or database.
*/
public var category: kotlin.String? = null
/**
* The description of the Amazon Web Service.
*/
public var description: kotlin.String? = null
/**
* The display name of the Amazon Web Service.
*/
public var displayName: kotlin.String? = null
/**
* The name of the Amazon Web Service.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.ServiceMetadata) : this() {
this.category = x.category
this.description = x.description
this.displayName = x.displayName
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.auditmanager.model.ServiceMetadata = ServiceMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy