commonMain.aws.sdk.kotlin.services.neptunegraph.model.UpdateGraphRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptunegraph.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateGraphRequest private constructor(builder: Builder) {
/**
* A value that indicates whether the graph has deletion protection enabled. The graph can't be deleted when deletion protection is enabled.
*/
public val deletionProtection: kotlin.Boolean? = builder.deletionProtection
/**
* The unique identifier of the Neptune Analytics graph.
*/
public val graphIdentifier: kotlin.String? = builder.graphIdentifier
/**
* The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.
*
* Min = 128
*/
public val provisionedMemory: kotlin.Int? = builder.provisionedMemory
/**
* Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (`true` to enable, or `false` to disable.
*/
public val publicConnectivity: kotlin.Boolean? = builder.publicConnectivity
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunegraph.model.UpdateGraphRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateGraphRequest(")
append("deletionProtection=$deletionProtection,")
append("graphIdentifier=$graphIdentifier,")
append("provisionedMemory=$provisionedMemory,")
append("publicConnectivity=$publicConnectivity")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deletionProtection?.hashCode() ?: 0
result = 31 * result + (graphIdentifier?.hashCode() ?: 0)
result = 31 * result + (provisionedMemory ?: 0)
result = 31 * result + (publicConnectivity?.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 UpdateGraphRequest
if (deletionProtection != other.deletionProtection) return false
if (graphIdentifier != other.graphIdentifier) return false
if (provisionedMemory != other.provisionedMemory) return false
if (publicConnectivity != other.publicConnectivity) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunegraph.model.UpdateGraphRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A value that indicates whether the graph has deletion protection enabled. The graph can't be deleted when deletion protection is enabled.
*/
public var deletionProtection: kotlin.Boolean? = null
/**
* The unique identifier of the Neptune Analytics graph.
*/
public var graphIdentifier: kotlin.String? = null
/**
* The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.
*
* Min = 128
*/
public var provisionedMemory: kotlin.Int? = null
/**
* Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (`true` to enable, or `false` to disable.
*/
public var publicConnectivity: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunegraph.model.UpdateGraphRequest) : this() {
this.deletionProtection = x.deletionProtection
this.graphIdentifier = x.graphIdentifier
this.provisionedMemory = x.provisionedMemory
this.publicConnectivity = x.publicConnectivity
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunegraph.model.UpdateGraphRequest = UpdateGraphRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}