commonMain.aws.sdk.kotlin.services.codegurusecurity.model.GetMetricsSummaryRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codegurusecurity-jvm Show documentation
Show all versions of codegurusecurity-jvm Show documentation
The AWS SDK for Kotlin client for CodeGuru Security
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codegurusecurity.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class GetMetricsSummaryRequest private constructor(builder: Builder) {
/**
* The date you want to retrieve summary metrics from, rounded to the nearest day. The date must be within the past two years.
*/
public val date: aws.smithy.kotlin.runtime.time.Instant? = builder.date
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codegurusecurity.model.GetMetricsSummaryRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMetricsSummaryRequest(")
append("date=$date")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = date?.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 GetMetricsSummaryRequest
if (date != other.date) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codegurusecurity.model.GetMetricsSummaryRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date you want to retrieve summary metrics from, rounded to the nearest day. The date must be within the past two years.
*/
public var date: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codegurusecurity.model.GetMetricsSummaryRequest) : this() {
this.date = x.date
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codegurusecurity.model.GetMetricsSummaryRequest = GetMetricsSummaryRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}