
commonMain.aws.sdk.kotlin.services.groundstation.model.GetMinuteUsageRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.groundstation.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
*
*/
public class GetMinuteUsageRequest private constructor(builder: Builder) {
/**
* The month being requested, with a value of 1-12.
*/
public val month: kotlin.Int = requireNotNull(builder.month) { "A non-null value must be provided for month" }
/**
* The year being requested, in the format of YYYY.
*/
public val year: kotlin.Int = requireNotNull(builder.year) { "A non-null value must be provided for year" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.GetMinuteUsageRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMinuteUsageRequest(")
append("month=$month,")
append("year=$year")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = month
result = 31 * result + (year)
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 GetMinuteUsageRequest
if (month != other.month) return false
if (year != other.year) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.GetMinuteUsageRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The month being requested, with a value of 1-12.
*/
public var month: kotlin.Int? = null
/**
* The year being requested, in the format of YYYY.
*/
public var year: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.GetMinuteUsageRequest) : this() {
this.month = x.month
this.year = x.year
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.GetMinuteUsageRequest = GetMinuteUsageRequest(this)
internal fun correctErrors(): Builder {
if (month == null) month = 0
if (year == null) year = 0
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy