commonMain.aws.sdk.kotlin.services.cloudsearch.model.DescribeAvailabilityOptionsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudsearch-jvm Show documentation
Show all versions of cloudsearch-jvm Show documentation
The AWS SDK for Kotlin client for CloudSearch
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudsearch.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Container for the parameters to the `DescribeAvailabilityOptions` operation. Specifies the name of the domain you want to describe. To show the active configuration and exclude any pending changes, set the Deployed option to `true`.
*/
public class DescribeAvailabilityOptionsRequest private constructor(builder: Builder) {
/**
* Whether to display the deployed configuration (`true`) or include any pending changes (`false`). Defaults to `false`.
*/
public val deployed: kotlin.Boolean? = builder.deployed
/**
* The name of the domain you want to describe.
*/
public val domainName: kotlin.String? = builder.domainName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudsearch.model.DescribeAvailabilityOptionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeAvailabilityOptionsRequest(")
append("deployed=$deployed,")
append("domainName=$domainName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deployed?.hashCode() ?: 0
result = 31 * result + (domainName?.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 DescribeAvailabilityOptionsRequest
if (deployed != other.deployed) return false
if (domainName != other.domainName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudsearch.model.DescribeAvailabilityOptionsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Whether to display the deployed configuration (`true`) or include any pending changes (`false`). Defaults to `false`.
*/
public var deployed: kotlin.Boolean? = null
/**
* The name of the domain you want to describe.
*/
public var domainName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudsearch.model.DescribeAvailabilityOptionsRequest) : this() {
this.deployed = x.deployed
this.domainName = x.domainName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudsearch.model.DescribeAvailabilityOptionsRequest = DescribeAvailabilityOptionsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}