
commonMain.aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseEventsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
public class GetRelationalDatabaseEventsRequest private constructor(builder: Builder) {
/**
* The number of minutes in the past from which to retrieve events. For example, to get all events from the past 2 hours, enter 120.
*
* Default: `60`
*
* The minimum is 1 and the maximum is 14 days (20160 minutes).
*/
public val durationInMinutes: kotlin.Int? = builder.durationInMinutes
/**
* The token to advance to the next page of results from your request.
*
* To get a page token, perform an initial `GetRelationalDatabaseEvents` request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.
*/
public val pageToken: kotlin.String? = builder.pageToken
/**
* The name of the database from which to get events.
*/
public val relationalDatabaseName: kotlin.String? = builder.relationalDatabaseName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseEventsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRelationalDatabaseEventsRequest(")
append("durationInMinutes=$durationInMinutes,")
append("pageToken=$pageToken,")
append("relationalDatabaseName=$relationalDatabaseName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = durationInMinutes ?: 0
result = 31 * result + (pageToken?.hashCode() ?: 0)
result = 31 * result + (relationalDatabaseName?.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 GetRelationalDatabaseEventsRequest
if (durationInMinutes != other.durationInMinutes) return false
if (pageToken != other.pageToken) return false
if (relationalDatabaseName != other.relationalDatabaseName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseEventsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The number of minutes in the past from which to retrieve events. For example, to get all events from the past 2 hours, enter 120.
*
* Default: `60`
*
* The minimum is 1 and the maximum is 14 days (20160 minutes).
*/
public var durationInMinutes: kotlin.Int? = null
/**
* The token to advance to the next page of results from your request.
*
* To get a page token, perform an initial `GetRelationalDatabaseEvents` request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.
*/
public var pageToken: kotlin.String? = null
/**
* The name of the database from which to get events.
*/
public var relationalDatabaseName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseEventsRequest) : this() {
this.durationInMinutes = x.durationInMinutes
this.pageToken = x.pageToken
this.relationalDatabaseName = x.relationalDatabaseName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseEventsRequest = GetRelationalDatabaseEventsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy