
commonMain.aws.sdk.kotlin.services.medialive.model.MaintenanceStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Placeholder documentation for MaintenanceStatus
*/
public class MaintenanceStatus private constructor(builder: Builder) {
/**
* The currently selected maintenance day.
*/
public val maintenanceDay: aws.sdk.kotlin.services.medialive.model.MaintenanceDay? = builder.maintenanceDay
/**
* Maintenance is required by the displayed date and time. Date and time is in ISO.
*/
public val maintenanceDeadline: kotlin.String? = builder.maintenanceDeadline
/**
* The currently scheduled maintenance date and time. Date and time is in ISO.
*/
public val maintenanceScheduledDate: kotlin.String? = builder.maintenanceScheduledDate
/**
* The currently selected maintenance start time. Time is in UTC.
*/
public val maintenanceStartTime: kotlin.String? = builder.maintenanceStartTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.MaintenanceStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MaintenanceStatus(")
append("maintenanceDay=$maintenanceDay,")
append("maintenanceDeadline=$maintenanceDeadline,")
append("maintenanceScheduledDate=$maintenanceScheduledDate,")
append("maintenanceStartTime=$maintenanceStartTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maintenanceDay?.hashCode() ?: 0
result = 31 * result + (maintenanceDeadline?.hashCode() ?: 0)
result = 31 * result + (maintenanceScheduledDate?.hashCode() ?: 0)
result = 31 * result + (maintenanceStartTime?.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 MaintenanceStatus
if (maintenanceDay != other.maintenanceDay) return false
if (maintenanceDeadline != other.maintenanceDeadline) return false
if (maintenanceScheduledDate != other.maintenanceScheduledDate) return false
if (maintenanceStartTime != other.maintenanceStartTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.MaintenanceStatus = Builder(this).apply(block).build()
public class Builder {
/**
* The currently selected maintenance day.
*/
public var maintenanceDay: aws.sdk.kotlin.services.medialive.model.MaintenanceDay? = null
/**
* Maintenance is required by the displayed date and time. Date and time is in ISO.
*/
public var maintenanceDeadline: kotlin.String? = null
/**
* The currently scheduled maintenance date and time. Date and time is in ISO.
*/
public var maintenanceScheduledDate: kotlin.String? = null
/**
* The currently selected maintenance start time. Time is in UTC.
*/
public var maintenanceStartTime: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.MaintenanceStatus) : this() {
this.maintenanceDay = x.maintenanceDay
this.maintenanceDeadline = x.maintenanceDeadline
this.maintenanceScheduledDate = x.maintenanceScheduledDate
this.maintenanceStartTime = x.maintenanceStartTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.MaintenanceStatus = MaintenanceStatus(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy