
commonMain.aws.sdk.kotlin.services.ssmcontacts.model.CreateRotationOverrideResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmcontacts.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateRotationOverrideResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the created rotation override.
*/
public val rotationOverrideId: kotlin.String = requireNotNull(builder.rotationOverrideId) { "A non-null value must be provided for rotationOverrideId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmcontacts.model.CreateRotationOverrideResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateRotationOverrideResponse(")
append("rotationOverrideId=$rotationOverrideId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = rotationOverrideId.hashCode()
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 CreateRotationOverrideResponse
if (rotationOverrideId != other.rotationOverrideId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmcontacts.model.CreateRotationOverrideResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the created rotation override.
*/
public var rotationOverrideId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmcontacts.model.CreateRotationOverrideResponse) : this() {
this.rotationOverrideId = x.rotationOverrideId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmcontacts.model.CreateRotationOverrideResponse = CreateRotationOverrideResponse(this)
internal fun correctErrors(): Builder {
if (rotationOverrideId == null) rotationOverrideId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy