
commonMain.aws.sdk.kotlin.services.ssm.model.GetCalendarStateRequest.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 GetCalendarStateRequest private constructor(builder: Builder) {
/**
* (Optional) The specific time for which you want to get calendar state information, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. If you don't specify a value or `AtTime`, the current time is used.
*/
public val atTime: kotlin.String? = builder.atTime
/**
* The names or Amazon Resource Names (ARNs) of the Systems Manager documents (SSM documents) that represent the calendar entries for which you want to get the state.
*/
public val calendarNames: List? = builder.calendarNames
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetCalendarStateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCalendarStateRequest(")
append("atTime=$atTime,")
append("calendarNames=$calendarNames")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = atTime?.hashCode() ?: 0
result = 31 * result + (calendarNames?.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 GetCalendarStateRequest
if (atTime != other.atTime) return false
if (calendarNames != other.calendarNames) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetCalendarStateRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* (Optional) The specific time for which you want to get calendar state information, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. If you don't specify a value or `AtTime`, the current time is used.
*/
public var atTime: kotlin.String? = null
/**
* The names or Amazon Resource Names (ARNs) of the Systems Manager documents (SSM documents) that represent the calendar entries for which you want to get the state.
*/
public var calendarNames: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetCalendarStateRequest) : this() {
this.atTime = x.atTime
this.calendarNames = x.calendarNames
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetCalendarStateRequest = GetCalendarStateRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy