
commonMain.aws.sdk.kotlin.services.iot.model.UpdateCertificateRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The input for the UpdateCertificate operation.
*/
public class UpdateCertificateRequest 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 new status.
*
* **Note:** Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by IoT. They are not intended for developer use.
*
* **Note:** The status value REGISTER_INACTIVE is deprecated and should not be used.
*/
public val newStatus: aws.sdk.kotlin.services.iot.model.CertificateStatus? = builder.newStatus
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.UpdateCertificateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateCertificateRequest(")
append("certificateId=$certificateId,")
append("newStatus=$newStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = certificateId?.hashCode() ?: 0
result = 31 * result + (newStatus?.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 UpdateCertificateRequest
if (certificateId != other.certificateId) return false
if (newStatus != other.newStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.UpdateCertificateRequest = 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 new status.
*
* **Note:** Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by IoT. They are not intended for developer use.
*
* **Note:** The status value REGISTER_INACTIVE is deprecated and should not be used.
*/
public var newStatus: aws.sdk.kotlin.services.iot.model.CertificateStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.UpdateCertificateRequest) : this() {
this.certificateId = x.certificateId
this.newStatus = x.newStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.UpdateCertificateRequest = UpdateCertificateRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy