All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseLogEventsResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.lightsail.model



public class GetRelationalDatabaseLogEventsResponse private constructor(builder: Builder) {
    /**
     * A token used for advancing to the previous page of results from your get relational database log events request.
     */
    public val nextBackwardToken: kotlin.String? = builder.nextBackwardToken
    /**
     * A token used for advancing to the next page of results from your get relational database log events request.
     */
    public val nextForwardToken: kotlin.String? = builder.nextForwardToken
    /**
     * An object describing the result of your get relational database log events request.
     */
    public val resourceLogEvents: List? = builder.resourceLogEvents

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseLogEventsResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetRelationalDatabaseLogEventsResponse(")
        append("nextBackwardToken=$nextBackwardToken,")
        append("nextForwardToken=$nextForwardToken,")
        append("resourceLogEvents=$resourceLogEvents")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = nextBackwardToken?.hashCode() ?: 0
        result = 31 * result + (nextForwardToken?.hashCode() ?: 0)
        result = 31 * result + (resourceLogEvents?.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 GetRelationalDatabaseLogEventsResponse

        if (nextBackwardToken != other.nextBackwardToken) return false
        if (nextForwardToken != other.nextForwardToken) return false
        if (resourceLogEvents != other.resourceLogEvents) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseLogEventsResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * A token used for advancing to the previous page of results from your get relational database log events request.
         */
        public var nextBackwardToken: kotlin.String? = null
        /**
         * A token used for advancing to the next page of results from your get relational database log events request.
         */
        public var nextForwardToken: kotlin.String? = null
        /**
         * An object describing the result of your get relational database log events request.
         */
        public var resourceLogEvents: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseLogEventsResponse) : this() {
            this.nextBackwardToken = x.nextBackwardToken
            this.nextForwardToken = x.nextForwardToken
            this.resourceLogEvents = x.resourceLogEvents
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseLogEventsResponse = GetRelationalDatabaseLogEventsResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy