
commonMain.aws.sdk.kotlin.services.opensearch.model.StartDomainMaintenanceRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* Container for the parameters to the `StartDomainMaintenance` operation.
*/
public class StartDomainMaintenanceRequest private constructor(builder: Builder) {
/**
* The name of the action.
*/
public val action: aws.sdk.kotlin.services.opensearch.model.MaintenanceType? = builder.action
/**
* The name of the domain.
*/
public val domainName: kotlin.String? = builder.domainName
/**
* The ID of the data node.
*/
public val nodeId: kotlin.String? = builder.nodeId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.StartDomainMaintenanceRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartDomainMaintenanceRequest(")
append("action=$action,")
append("domainName=$domainName,")
append("nodeId=$nodeId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = action?.hashCode() ?: 0
result = 31 * result + (domainName?.hashCode() ?: 0)
result = 31 * result + (nodeId?.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 StartDomainMaintenanceRequest
if (action != other.action) return false
if (domainName != other.domainName) return false
if (nodeId != other.nodeId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.StartDomainMaintenanceRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the action.
*/
public var action: aws.sdk.kotlin.services.opensearch.model.MaintenanceType? = null
/**
* The name of the domain.
*/
public var domainName: kotlin.String? = null
/**
* The ID of the data node.
*/
public var nodeId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.StartDomainMaintenanceRequest) : this() {
this.action = x.action
this.domainName = x.domainName
this.nodeId = x.nodeId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.StartDomainMaintenanceRequest = StartDomainMaintenanceRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy