
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.CreateTrustStoreRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticloadbalancingv2.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateTrustStoreRequest private constructor(builder: Builder) {
/**
* The Amazon S3 bucket for the ca certificates bundle.
*/
public val caCertificatesBundleS3Bucket: kotlin.String? = builder.caCertificatesBundleS3Bucket
/**
* The Amazon S3 path for the ca certificates bundle.
*/
public val caCertificatesBundleS3Key: kotlin.String? = builder.caCertificatesBundleS3Key
/**
* The Amazon S3 object version for the ca certificates bundle. If undefined the current version is used.
*/
public val caCertificatesBundleS3ObjectVersion: kotlin.String? = builder.caCertificatesBundleS3ObjectVersion
/**
* The name of the trust store.
*
* This name must be unique per region and cannot be changed after creation.
*/
public val name: kotlin.String? = builder.name
/**
* The tags to assign to the trust store.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticloadbalancingv2.model.CreateTrustStoreRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateTrustStoreRequest(")
append("caCertificatesBundleS3Bucket=$caCertificatesBundleS3Bucket,")
append("caCertificatesBundleS3Key=$caCertificatesBundleS3Key,")
append("caCertificatesBundleS3ObjectVersion=$caCertificatesBundleS3ObjectVersion,")
append("name=$name,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = caCertificatesBundleS3Bucket?.hashCode() ?: 0
result = 31 * result + (caCertificatesBundleS3Key?.hashCode() ?: 0)
result = 31 * result + (caCertificatesBundleS3ObjectVersion?.hashCode() ?: 0)
result = 31 * result + (name?.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 CreateTrustStoreRequest
if (caCertificatesBundleS3Bucket != other.caCertificatesBundleS3Bucket) return false
if (caCertificatesBundleS3Key != other.caCertificatesBundleS3Key) return false
if (caCertificatesBundleS3ObjectVersion != other.caCertificatesBundleS3ObjectVersion) return false
if (name != other.name) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticloadbalancingv2.model.CreateTrustStoreRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon S3 bucket for the ca certificates bundle.
*/
public var caCertificatesBundleS3Bucket: kotlin.String? = null
/**
* The Amazon S3 path for the ca certificates bundle.
*/
public var caCertificatesBundleS3Key: kotlin.String? = null
/**
* The Amazon S3 object version for the ca certificates bundle. If undefined the current version is used.
*/
public var caCertificatesBundleS3ObjectVersion: kotlin.String? = null
/**
* The name of the trust store.
*
* This name must be unique per region and cannot be changed after creation.
*/
public var name: kotlin.String? = null
/**
* The tags to assign to the trust store.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.CreateTrustStoreRequest) : this() {
this.caCertificatesBundleS3Bucket = x.caCertificatesBundleS3Bucket
this.caCertificatesBundleS3Key = x.caCertificatesBundleS3Key
this.caCertificatesBundleS3ObjectVersion = x.caCertificatesBundleS3ObjectVersion
this.name = x.name
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticloadbalancingv2.model.CreateTrustStoreRequest = CreateTrustStoreRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy