
commonMain.aws.sdk.kotlin.services.iam.model.UploadServerCertificateResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iam.model
/**
* Contains the response to a successful UploadServerCertificate request.
*/
public class UploadServerCertificateResponse private constructor(builder: Builder) {
/**
* The meta information of the uploaded server certificate without its certificate body, certificate chain, and private key.
*/
public val serverCertificateMetadata: aws.sdk.kotlin.services.iam.model.ServerCertificateMetadata? = builder.serverCertificateMetadata
/**
* A list of tags that are attached to the new IAM server certificate. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the *IAM User Guide*.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iam.model.UploadServerCertificateResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UploadServerCertificateResponse(")
append("serverCertificateMetadata=$serverCertificateMetadata,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = serverCertificateMetadata?.hashCode() ?: 0
result = 31 * result + (tags?.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 UploadServerCertificateResponse
if (serverCertificateMetadata != other.serverCertificateMetadata) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iam.model.UploadServerCertificateResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The meta information of the uploaded server certificate without its certificate body, certificate chain, and private key.
*/
public var serverCertificateMetadata: aws.sdk.kotlin.services.iam.model.ServerCertificateMetadata? = null
/**
* A list of tags that are attached to the new IAM server certificate. The returned list of tags is sorted by tag key. For more information about tagging, see [Tagging IAM resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the *IAM User Guide*.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iam.model.UploadServerCertificateResponse) : this() {
this.serverCertificateMetadata = x.serverCertificateMetadata
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iam.model.UploadServerCertificateResponse = UploadServerCertificateResponse(this)
/**
* construct an [aws.sdk.kotlin.services.iam.model.ServerCertificateMetadata] inside the given [block]
*/
public fun serverCertificateMetadata(block: aws.sdk.kotlin.services.iam.model.ServerCertificateMetadata.Builder.() -> kotlin.Unit) {
this.serverCertificateMetadata = aws.sdk.kotlin.services.iam.model.ServerCertificateMetadata.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy