
commonMain.aws.sdk.kotlin.services.neptunedata.model.SparqlData.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptunedata.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Neptune logs are converted to SPARQL quads in the graph using the Resource Description Framework (RDF) [N-QUADS](https://www.w3.org/TR/n-quads/) language defined in the W3C RDF 1.1 N-Quads specification
*/
public class SparqlData private constructor(builder: Builder) {
/**
* Holds an [N-QUADS](https://www.w3.org/TR/n-quads/) statement expressing the changed quad.
*/
public val stmt: kotlin.String = requireNotNull(builder.stmt) { "A non-null value must be provided for stmt" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunedata.model.SparqlData = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SparqlData(")
append("stmt=$stmt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = stmt.hashCode()
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 SparqlData
if (stmt != other.stmt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunedata.model.SparqlData = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Holds an [N-QUADS](https://www.w3.org/TR/n-quads/) statement expressing the changed quad.
*/
public var stmt: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.SparqlData) : this() {
this.stmt = x.stmt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunedata.model.SparqlData = SparqlData(this)
internal fun correctErrors(): Builder {
if (stmt == null) stmt = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy