
commonMain.aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseLogEventsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
import aws.smithy.kotlin.runtime.time.Instant
public class GetRelationalDatabaseLogEventsRequest private constructor(builder: Builder) {
/**
* The end of the time interval from which to get log events.
*
* Constraints:
* + Specified in Coordinated Universal Time (UTC).
* + Specified in the Unix time format.For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC, then you input `1538424000` as the end time.
*/
public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
/**
* The name of the log stream.
*
* Use the `get relational database log streams` operation to get a list of available log streams.
*/
public val logStreamName: kotlin.String? = builder.logStreamName
/**
* The token to advance to the next or previous page of results from your request.
*
* To get a page token, perform an initial `GetRelationalDatabaseLogEvents` request. If your results are paginated, the response will return a next forward token and/or next backward token that you can specify as the page token in a subsequent request.
*/
public val pageToken: kotlin.String? = builder.pageToken
/**
* The name of your database for which to get log events.
*/
public val relationalDatabaseName: kotlin.String? = builder.relationalDatabaseName
/**
* Parameter to specify if the log should start from head or tail. If `true` is specified, the log event starts from the head of the log. If `false` is specified, the log event starts from the tail of the log.
*
* For PostgreSQL, the default value of `false` is the only option available.
*/
public val startFromHead: kotlin.Boolean? = builder.startFromHead
/**
* The start of the time interval from which to get log events.
*
* Constraints:
* + Specified in Coordinated Universal Time (UTC).
* + Specified in the Unix time format.For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, then you input `1538424000` as the start time.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseLogEventsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRelationalDatabaseLogEventsRequest(")
append("endTime=$endTime,")
append("logStreamName=$logStreamName,")
append("pageToken=$pageToken,")
append("relationalDatabaseName=$relationalDatabaseName,")
append("startFromHead=$startFromHead,")
append("startTime=$startTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = endTime?.hashCode() ?: 0
result = 31 * result + (logStreamName?.hashCode() ?: 0)
result = 31 * result + (pageToken?.hashCode() ?: 0)
result = 31 * result + (relationalDatabaseName?.hashCode() ?: 0)
result = 31 * result + (startFromHead?.hashCode() ?: 0)
result = 31 * result + (startTime?.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 GetRelationalDatabaseLogEventsRequest
if (endTime != other.endTime) return false
if (logStreamName != other.logStreamName) return false
if (pageToken != other.pageToken) return false
if (relationalDatabaseName != other.relationalDatabaseName) return false
if (startFromHead != other.startFromHead) return false
if (startTime != other.startTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseLogEventsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The end of the time interval from which to get log events.
*
* Constraints:
* + Specified in Coordinated Universal Time (UTC).
* + Specified in the Unix time format.For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC, then you input `1538424000` as the end time.
*/
public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the log stream.
*
* Use the `get relational database log streams` operation to get a list of available log streams.
*/
public var logStreamName: kotlin.String? = null
/**
* The token to advance to the next or previous page of results from your request.
*
* To get a page token, perform an initial `GetRelationalDatabaseLogEvents` request. If your results are paginated, the response will return a next forward token and/or next backward token that you can specify as the page token in a subsequent request.
*/
public var pageToken: kotlin.String? = null
/**
* The name of your database for which to get log events.
*/
public var relationalDatabaseName: kotlin.String? = null
/**
* Parameter to specify if the log should start from head or tail. If `true` is specified, the log event starts from the head of the log. If `false` is specified, the log event starts from the tail of the log.
*
* For PostgreSQL, the default value of `false` is the only option available.
*/
public var startFromHead: kotlin.Boolean? = null
/**
* The start of the time interval from which to get log events.
*
* Constraints:
* + Specified in Coordinated Universal Time (UTC).
* + Specified in the Unix time format.For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, then you input `1538424000` as the start time.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseLogEventsRequest) : this() {
this.endTime = x.endTime
this.logStreamName = x.logStreamName
this.pageToken = x.pageToken
this.relationalDatabaseName = x.relationalDatabaseName
this.startFromHead = x.startFromHead
this.startTime = x.startTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseLogEventsRequest = GetRelationalDatabaseLogEventsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy