
commonMain.aws.sdk.kotlin.services.iot.model.TransferCertificateRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The input for the TransferCertificate operation.
*/
public class TransferCertificateRequest private constructor(builder: Builder) {
/**
* The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
*/
public val certificateId: kotlin.String? = builder.certificateId
/**
* The Amazon Web Services account.
*/
public val targetAwsAccount: kotlin.String? = builder.targetAwsAccount
/**
* The transfer message.
*/
public val transferMessage: kotlin.String? = builder.transferMessage
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.TransferCertificateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TransferCertificateRequest(")
append("certificateId=$certificateId,")
append("targetAwsAccount=$targetAwsAccount,")
append("transferMessage=$transferMessage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = certificateId?.hashCode() ?: 0
result = 31 * result + (targetAwsAccount?.hashCode() ?: 0)
result = 31 * result + (transferMessage?.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 TransferCertificateRequest
if (certificateId != other.certificateId) return false
if (targetAwsAccount != other.targetAwsAccount) return false
if (transferMessage != other.transferMessage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.TransferCertificateRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
*/
public var certificateId: kotlin.String? = null
/**
* The Amazon Web Services account.
*/
public var targetAwsAccount: kotlin.String? = null
/**
* The transfer message.
*/
public var transferMessage: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.TransferCertificateRequest) : this() {
this.certificateId = x.certificateId
this.targetAwsAccount = x.targetAwsAccount
this.transferMessage = x.transferMessage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.TransferCertificateRequest = TransferCertificateRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy