
commonMain.aws.sdk.kotlin.services.ssm.model.GetCalendarStateResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetCalendarStateResponse private constructor(builder: Builder) {
/**
* The time, as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string, that you specified in your command. If you don't specify a time, `GetCalendarState` uses the current time.
*/
public val atTime: kotlin.String? = builder.atTime
/**
* The time, as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string, that the calendar state will change. If the current calendar state is `OPEN`, `NextTransitionTime` indicates when the calendar state changes to `CLOSED`, and vice-versa.
*/
public val nextTransitionTime: kotlin.String? = builder.nextTransitionTime
/**
* The state of the calendar. An `OPEN` calendar indicates that actions are allowed to proceed, and a `CLOSED` calendar indicates that actions aren't allowed to proceed.
*/
public val state: aws.sdk.kotlin.services.ssm.model.CalendarState? = builder.state
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetCalendarStateResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCalendarStateResponse(")
append("atTime=$atTime,")
append("nextTransitionTime=$nextTransitionTime,")
append("state=$state")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = atTime?.hashCode() ?: 0
result = 31 * result + (nextTransitionTime?.hashCode() ?: 0)
result = 31 * result + (state?.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 GetCalendarStateResponse
if (atTime != other.atTime) return false
if (nextTransitionTime != other.nextTransitionTime) return false
if (state != other.state) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetCalendarStateResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time, as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string, that you specified in your command. If you don't specify a time, `GetCalendarState` uses the current time.
*/
public var atTime: kotlin.String? = null
/**
* The time, as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string, that the calendar state will change. If the current calendar state is `OPEN`, `NextTransitionTime` indicates when the calendar state changes to `CLOSED`, and vice-versa.
*/
public var nextTransitionTime: kotlin.String? = null
/**
* The state of the calendar. An `OPEN` calendar indicates that actions are allowed to proceed, and a `CLOSED` calendar indicates that actions aren't allowed to proceed.
*/
public var state: aws.sdk.kotlin.services.ssm.model.CalendarState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetCalendarStateResponse) : this() {
this.atTime = x.atTime
this.nextTransitionTime = x.nextTransitionTime
this.state = x.state
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetCalendarStateResponse = GetCalendarStateResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy