
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.RevocationContent.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
/**
* Information about a revocation file.
*/
public class RevocationContent private constructor(builder: Builder) {
/**
* The type of revocation file.
*/
public val revocationType: aws.sdk.kotlin.services.elasticloadbalancingv2.model.RevocationType? = builder.revocationType
/**
* The Amazon S3 bucket for the revocation file.
*/
public val s3Bucket: kotlin.String? = builder.s3Bucket
/**
* The Amazon S3 path for the revocation file.
*/
public val s3Key: kotlin.String? = builder.s3Key
/**
* The Amazon S3 object version of the revocation file.
*/
public val s3ObjectVersion: kotlin.String? = builder.s3ObjectVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticloadbalancingv2.model.RevocationContent = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RevocationContent(")
append("revocationType=$revocationType,")
append("s3Bucket=$s3Bucket,")
append("s3Key=$s3Key,")
append("s3ObjectVersion=$s3ObjectVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = revocationType?.hashCode() ?: 0
result = 31 * result + (s3Bucket?.hashCode() ?: 0)
result = 31 * result + (s3Key?.hashCode() ?: 0)
result = 31 * result + (s3ObjectVersion?.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 RevocationContent
if (revocationType != other.revocationType) return false
if (s3Bucket != other.s3Bucket) return false
if (s3Key != other.s3Key) return false
if (s3ObjectVersion != other.s3ObjectVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticloadbalancingv2.model.RevocationContent = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The type of revocation file.
*/
public var revocationType: aws.sdk.kotlin.services.elasticloadbalancingv2.model.RevocationType? = null
/**
* The Amazon S3 bucket for the revocation file.
*/
public var s3Bucket: kotlin.String? = null
/**
* The Amazon S3 path for the revocation file.
*/
public var s3Key: kotlin.String? = null
/**
* The Amazon S3 object version of the revocation file.
*/
public var s3ObjectVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.RevocationContent) : this() {
this.revocationType = x.revocationType
this.s3Bucket = x.s3Bucket
this.s3Key = x.s3Key
this.s3ObjectVersion = x.s3ObjectVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticloadbalancingv2.model.RevocationContent = RevocationContent(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy