commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ImportCertificateRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databasemigrationservice.model
import aws.smithy.kotlin.runtime.SdkDsl
public class ImportCertificateRequest private constructor(builder: Builder) {
/**
* A customer-assigned name for the certificate. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.
*/
public val certificateIdentifier: kotlin.String? = builder.certificateIdentifier
/**
* The contents of a `.pem` file, which contains an X.509 certificate.
*/
public val certificatePem: kotlin.String? = builder.certificatePem
/**
* The location of an imported Oracle Wallet certificate for use with SSL. Provide the name of a `.sso` file using the `fileb://` prefix. You can't provide the certificate inline.
*
* Example: `filebase64("${path.root}/rds-ca-2019-root.sso")`
*/
public val certificateWallet: kotlin.ByteArray? = builder.certificateWallet
/**
* The tags associated with the certificate.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.ImportCertificateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImportCertificateRequest(")
append("certificateIdentifier=$certificateIdentifier,")
append("certificatePem=*** Sensitive Data Redacted ***,")
append("certificateWallet=$certificateWallet,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = certificateIdentifier?.hashCode() ?: 0
result = 31 * result + (certificatePem?.hashCode() ?: 0)
result = 31 * result + (certificateWallet?.contentHashCode() ?: 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 ImportCertificateRequest
if (certificateIdentifier != other.certificateIdentifier) return false
if (certificatePem != other.certificatePem) return false
if (certificateWallet != null) {
if (other.certificateWallet == null) return false
if (!certificateWallet.contentEquals(other.certificateWallet)) return false
} else if (other.certificateWallet != null) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.ImportCertificateRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A customer-assigned name for the certificate. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.
*/
public var certificateIdentifier: kotlin.String? = null
/**
* The contents of a `.pem` file, which contains an X.509 certificate.
*/
public var certificatePem: kotlin.String? = null
/**
* The location of an imported Oracle Wallet certificate for use with SSL. Provide the name of a `.sso` file using the `fileb://` prefix. You can't provide the certificate inline.
*
* Example: `filebase64("${path.root}/rds-ca-2019-root.sso")`
*/
public var certificateWallet: kotlin.ByteArray? = null
/**
* The tags associated with the certificate.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.ImportCertificateRequest) : this() {
this.certificateIdentifier = x.certificateIdentifier
this.certificatePem = x.certificatePem
this.certificateWallet = x.certificateWallet
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.ImportCertificateRequest = ImportCertificateRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy