commonMain.aws.sdk.kotlin.services.neptune.model.ModifyDbClusterEndpointRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neptune-jvm Show documentation
Show all versions of neptune-jvm Show documentation
The AWS SDK for Kotlin client for Neptune
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptune.model
import aws.smithy.kotlin.runtime.SdkDsl
public class ModifyDbClusterEndpointRequest private constructor(builder: Builder) {
/**
* The identifier of the endpoint to modify. This parameter is stored as a lowercase string.
*/
public val dbClusterEndpointIdentifier: kotlin.String? = builder.dbClusterEndpointIdentifier
/**
* The type of the endpoint. One of: `READER`, `WRITER`, `ANY`.
*/
public val endpointType: kotlin.String? = builder.endpointType
/**
* List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
*/
public val excludedMembers: List? = builder.excludedMembers
/**
* List of DB instance identifiers that are part of the custom endpoint group.
*/
public val staticMembers: List? = builder.staticMembers
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptune.model.ModifyDbClusterEndpointRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModifyDbClusterEndpointRequest(")
append("dbClusterEndpointIdentifier=$dbClusterEndpointIdentifier,")
append("endpointType=$endpointType,")
append("excludedMembers=$excludedMembers,")
append("staticMembers=$staticMembers")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dbClusterEndpointIdentifier?.hashCode() ?: 0
result = 31 * result + (endpointType?.hashCode() ?: 0)
result = 31 * result + (excludedMembers?.hashCode() ?: 0)
result = 31 * result + (staticMembers?.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 ModifyDbClusterEndpointRequest
if (dbClusterEndpointIdentifier != other.dbClusterEndpointIdentifier) return false
if (endpointType != other.endpointType) return false
if (excludedMembers != other.excludedMembers) return false
if (staticMembers != other.staticMembers) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptune.model.ModifyDbClusterEndpointRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the endpoint to modify. This parameter is stored as a lowercase string.
*/
public var dbClusterEndpointIdentifier: kotlin.String? = null
/**
* The type of the endpoint. One of: `READER`, `WRITER`, `ANY`.
*/
public var endpointType: kotlin.String? = null
/**
* List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
*/
public var excludedMembers: List? = null
/**
* List of DB instance identifiers that are part of the custom endpoint group.
*/
public var staticMembers: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptune.model.ModifyDbClusterEndpointRequest) : this() {
this.dbClusterEndpointIdentifier = x.dbClusterEndpointIdentifier
this.endpointType = x.endpointType
this.excludedMembers = x.excludedMembers
this.staticMembers = x.staticMembers
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptune.model.ModifyDbClusterEndpointRequest = ModifyDbClusterEndpointRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}