
commonMain.aws.sdk.kotlin.services.medialive.model.MaintenanceUpdateSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Placeholder documentation for MaintenanceUpdateSettings
*/
public class MaintenanceUpdateSettings private constructor(builder: Builder) {
/**
* Choose one day of the week for maintenance. The chosen day is used for all future maintenance windows.
*/
public val maintenanceDay: aws.sdk.kotlin.services.medialive.model.MaintenanceDay? = builder.maintenanceDay
/**
* Choose a specific date for maintenance to occur. The chosen date is used for the next maintenance window only.
*/
public val maintenanceScheduledDate: kotlin.String? = builder.maintenanceScheduledDate
/**
* Choose the hour that maintenance will start. The chosen time is used for all future maintenance windows.
*/
public val maintenanceStartTime: kotlin.String? = builder.maintenanceStartTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.MaintenanceUpdateSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MaintenanceUpdateSettings(")
append("maintenanceDay=$maintenanceDay,")
append("maintenanceScheduledDate=$maintenanceScheduledDate,")
append("maintenanceStartTime=$maintenanceStartTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maintenanceDay?.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 MaintenanceUpdateSettings
if (maintenanceDay != other.maintenanceDay) 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.MaintenanceUpdateSettings = Builder(this).apply(block).build()
public class Builder {
/**
* Choose one day of the week for maintenance. The chosen day is used for all future maintenance windows.
*/
public var maintenanceDay: aws.sdk.kotlin.services.medialive.model.MaintenanceDay? = null
/**
* Choose a specific date for maintenance to occur. The chosen date is used for the next maintenance window only.
*/
public var maintenanceScheduledDate: kotlin.String? = null
/**
* Choose the hour that maintenance will start. The chosen time is used for all future maintenance windows.
*/
public var maintenanceStartTime: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.MaintenanceUpdateSettings) : this() {
this.maintenanceDay = x.maintenanceDay
this.maintenanceScheduledDate = x.maintenanceScheduledDate
this.maintenanceStartTime = x.maintenanceStartTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.MaintenanceUpdateSettings = MaintenanceUpdateSettings(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy