
commonMain.aws.sdk.kotlin.services.ssmcontacts.model.DeleteRotationOverrideRequest.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 DeleteRotationOverrideRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the rotation that was overridden.
*/
public val rotationId: kotlin.String? = builder.rotationId
/**
* The Amazon Resource Name (ARN) of the on-call rotation override to delete.
*/
public val rotationOverrideId: kotlin.String? = builder.rotationOverrideId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmcontacts.model.DeleteRotationOverrideRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteRotationOverrideRequest(")
append("rotationId=$rotationId,")
append("rotationOverrideId=$rotationOverrideId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = rotationId?.hashCode() ?: 0
result = 31 * result + (rotationOverrideId?.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 DeleteRotationOverrideRequest
if (rotationId != other.rotationId) return false
if (rotationOverrideId != other.rotationOverrideId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmcontacts.model.DeleteRotationOverrideRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the rotation that was overridden.
*/
public var rotationId: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the on-call rotation override to delete.
*/
public var rotationOverrideId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmcontacts.model.DeleteRotationOverrideRequest) : this() {
this.rotationId = x.rotationId
this.rotationOverrideId = x.rotationOverrideId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmcontacts.model.DeleteRotationOverrideRequest = DeleteRotationOverrideRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy