
commonMain.aws.sdk.kotlin.services.groundstation.model.GetMinuteUsageResponse.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 GetMinuteUsageResponse private constructor(builder: Builder) {
/**
* Estimated number of minutes remaining for an account, specific to the month being requested.
*/
public val estimatedMinutesRemaining: kotlin.Int? = builder.estimatedMinutesRemaining
/**
* Returns whether or not an account has signed up for the reserved minutes pricing plan, specific to the month being requested.
*/
public val isReservedMinutesCustomer: kotlin.Boolean? = builder.isReservedMinutesCustomer
/**
* Total number of reserved minutes allocated, specific to the month being requested.
*/
public val totalReservedMinuteAllocation: kotlin.Int? = builder.totalReservedMinuteAllocation
/**
* Total scheduled minutes for an account, specific to the month being requested.
*/
public val totalScheduledMinutes: kotlin.Int? = builder.totalScheduledMinutes
/**
* Upcoming minutes scheduled for an account, specific to the month being requested.
*/
public val upcomingMinutesScheduled: kotlin.Int? = builder.upcomingMinutesScheduled
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.GetMinuteUsageResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMinuteUsageResponse(")
append("estimatedMinutesRemaining=$estimatedMinutesRemaining,")
append("isReservedMinutesCustomer=$isReservedMinutesCustomer,")
append("totalReservedMinuteAllocation=$totalReservedMinuteAllocation,")
append("totalScheduledMinutes=$totalScheduledMinutes,")
append("upcomingMinutesScheduled=$upcomingMinutesScheduled")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = estimatedMinutesRemaining ?: 0
result = 31 * result + (isReservedMinutesCustomer?.hashCode() ?: 0)
result = 31 * result + (totalReservedMinuteAllocation ?: 0)
result = 31 * result + (totalScheduledMinutes ?: 0)
result = 31 * result + (upcomingMinutesScheduled ?: 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 GetMinuteUsageResponse
if (estimatedMinutesRemaining != other.estimatedMinutesRemaining) return false
if (isReservedMinutesCustomer != other.isReservedMinutesCustomer) return false
if (totalReservedMinuteAllocation != other.totalReservedMinuteAllocation) return false
if (totalScheduledMinutes != other.totalScheduledMinutes) return false
if (upcomingMinutesScheduled != other.upcomingMinutesScheduled) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.GetMinuteUsageResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Estimated number of minutes remaining for an account, specific to the month being requested.
*/
public var estimatedMinutesRemaining: kotlin.Int? = null
/**
* Returns whether or not an account has signed up for the reserved minutes pricing plan, specific to the month being requested.
*/
public var isReservedMinutesCustomer: kotlin.Boolean? = null
/**
* Total number of reserved minutes allocated, specific to the month being requested.
*/
public var totalReservedMinuteAllocation: kotlin.Int? = null
/**
* Total scheduled minutes for an account, specific to the month being requested.
*/
public var totalScheduledMinutes: kotlin.Int? = null
/**
* Upcoming minutes scheduled for an account, specific to the month being requested.
*/
public var upcomingMinutesScheduled: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.GetMinuteUsageResponse) : this() {
this.estimatedMinutesRemaining = x.estimatedMinutesRemaining
this.isReservedMinutesCustomer = x.isReservedMinutesCustomer
this.totalReservedMinuteAllocation = x.totalReservedMinuteAllocation
this.totalScheduledMinutes = x.totalScheduledMinutes
this.upcomingMinutesScheduled = x.upcomingMinutesScheduled
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.GetMinuteUsageResponse = GetMinuteUsageResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy