commonMain.aws.sdk.kotlin.services.neptunegraph.model.UpdateGraphResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class UpdateGraphResponse private constructor(builder: Builder) {
/**
* The ARN associated with the graph.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* The build number of the graph.
*/
public val buildNumber: kotlin.String? = builder.buildNumber
/**
* The time at which the graph was created.
*/
public val createTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createTime
/**
* If `true`, deletion protection is enabled for the graph.
*/
public val deletionProtection: kotlin.Boolean? = builder.deletionProtection
/**
* The graph endpoint.
*/
public val endpoint: kotlin.String? = builder.endpoint
/**
* The unique identifier of the graph.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The ID of the KMS key used to encrypt and decrypt graph data.
*/
public val kmsKeyIdentifier: kotlin.String? = builder.kmsKeyIdentifier
/**
* The name of the graph.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.
*/
public val provisionedMemory: kotlin.Int? = builder.provisionedMemory
/**
* If `true`, the graph has a public endpoint, otherwise not.
*/
public val publicConnectivity: kotlin.Boolean? = builder.publicConnectivity
/**
* The number of replicas for the graph.
*/
public val replicaCount: kotlin.Int? = builder.replicaCount
/**
* The ID of the snapshot from which the graph was created, if any.
*/
public val sourceSnapshotId: kotlin.String? = builder.sourceSnapshotId
/**
* The status of the graph.
*/
public val status: aws.sdk.kotlin.services.neptunegraph.model.GraphStatus? = builder.status
/**
* The reason that the graph has this status.
*/
public val statusReason: kotlin.String? = builder.statusReason
/**
* Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535
*/
public val vectorSearchConfiguration: aws.sdk.kotlin.services.neptunegraph.model.VectorSearchConfiguration? = builder.vectorSearchConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunegraph.model.UpdateGraphResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateGraphResponse(")
append("arn=$arn,")
append("buildNumber=$buildNumber,")
append("createTime=$createTime,")
append("deletionProtection=$deletionProtection,")
append("endpoint=$endpoint,")
append("id=$id,")
append("kmsKeyIdentifier=$kmsKeyIdentifier,")
append("name=$name,")
append("provisionedMemory=$provisionedMemory,")
append("publicConnectivity=$publicConnectivity,")
append("replicaCount=$replicaCount,")
append("sourceSnapshotId=$sourceSnapshotId,")
append("status=$status,")
append("statusReason=$statusReason,")
append("vectorSearchConfiguration=$vectorSearchConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (buildNumber?.hashCode() ?: 0)
result = 31 * result + (createTime?.hashCode() ?: 0)
result = 31 * result + (deletionProtection?.hashCode() ?: 0)
result = 31 * result + (endpoint?.hashCode() ?: 0)
result = 31 * result + (id.hashCode())
result = 31 * result + (kmsKeyIdentifier?.hashCode() ?: 0)
result = 31 * result + (name.hashCode())
result = 31 * result + (provisionedMemory ?: 0)
result = 31 * result + (publicConnectivity?.hashCode() ?: 0)
result = 31 * result + (replicaCount ?: 0)
result = 31 * result + (sourceSnapshotId?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusReason?.hashCode() ?: 0)
result = 31 * result + (vectorSearchConfiguration?.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 UpdateGraphResponse
if (arn != other.arn) return false
if (buildNumber != other.buildNumber) return false
if (createTime != other.createTime) return false
if (deletionProtection != other.deletionProtection) return false
if (endpoint != other.endpoint) return false
if (id != other.id) return false
if (kmsKeyIdentifier != other.kmsKeyIdentifier) return false
if (name != other.name) return false
if (provisionedMemory != other.provisionedMemory) return false
if (publicConnectivity != other.publicConnectivity) return false
if (replicaCount != other.replicaCount) return false
if (sourceSnapshotId != other.sourceSnapshotId) return false
if (status != other.status) return false
if (statusReason != other.statusReason) return false
if (vectorSearchConfiguration != other.vectorSearchConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunegraph.model.UpdateGraphResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN associated with the graph.
*/
public var arn: kotlin.String? = null
/**
* The build number of the graph.
*/
public var buildNumber: kotlin.String? = null
/**
* The time at which the graph was created.
*/
public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* If `true`, deletion protection is enabled for the graph.
*/
public var deletionProtection: kotlin.Boolean? = null
/**
* The graph endpoint.
*/
public var endpoint: kotlin.String? = null
/**
* The unique identifier of the graph.
*/
public var id: kotlin.String? = null
/**
* The ID of the KMS key used to encrypt and decrypt graph data.
*/
public var kmsKeyIdentifier: kotlin.String? = null
/**
* The name of the graph.
*/
public var name: kotlin.String? = null
/**
* The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.
*/
public var provisionedMemory: kotlin.Int? = null
/**
* If `true`, the graph has a public endpoint, otherwise not.
*/
public var publicConnectivity: kotlin.Boolean? = null
/**
* The number of replicas for the graph.
*/
public var replicaCount: kotlin.Int? = null
/**
* The ID of the snapshot from which the graph was created, if any.
*/
public var sourceSnapshotId: kotlin.String? = null
/**
* The status of the graph.
*/
public var status: aws.sdk.kotlin.services.neptunegraph.model.GraphStatus? = null
/**
* The reason that the graph has this status.
*/
public var statusReason: kotlin.String? = null
/**
* Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535
*/
public var vectorSearchConfiguration: aws.sdk.kotlin.services.neptunegraph.model.VectorSearchConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunegraph.model.UpdateGraphResponse) : this() {
this.arn = x.arn
this.buildNumber = x.buildNumber
this.createTime = x.createTime
this.deletionProtection = x.deletionProtection
this.endpoint = x.endpoint
this.id = x.id
this.kmsKeyIdentifier = x.kmsKeyIdentifier
this.name = x.name
this.provisionedMemory = x.provisionedMemory
this.publicConnectivity = x.publicConnectivity
this.replicaCount = x.replicaCount
this.sourceSnapshotId = x.sourceSnapshotId
this.status = x.status
this.statusReason = x.statusReason
this.vectorSearchConfiguration = x.vectorSearchConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunegraph.model.UpdateGraphResponse = UpdateGraphResponse(this)
/**
* construct an [aws.sdk.kotlin.services.neptunegraph.model.VectorSearchConfiguration] inside the given [block]
*/
public fun vectorSearchConfiguration(block: aws.sdk.kotlin.services.neptunegraph.model.VectorSearchConfiguration.Builder.() -> kotlin.Unit) {
this.vectorSearchConfiguration = aws.sdk.kotlin.services.neptunegraph.model.VectorSearchConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (id == null) id = ""
if (name == null) name = ""
return this
}
}
}