commonMain.aws.sdk.kotlin.services.neptunegraph.model.StartImportTaskRequest.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 StartImportTaskRequest private constructor(builder: Builder) {
/**
* The method to handle blank nodes in the dataset. Currently, only `convertToIri` is supported, meaning blank nodes are converted to unique IRIs at load time. Must be provided when format is `ntriples`. For more information, see [Handling RDF values](https://docs.aws.amazon.com/neptune-analytics/latest/userguide/using-rdf-data.html#rdf-handling).
*/
public val blankNodeHandling: aws.sdk.kotlin.services.neptunegraph.model.BlankNodeHandling? = builder.blankNodeHandling
/**
* If set to true, the task halts when an import error is encountered. If set to false, the task skips the data that caused the error and continues if possible.
*/
public val failOnError: kotlin.Boolean? = builder.failOnError
/**
* Specifies the format of Amazon S3 data to be imported. Valid values are CSV, which identifies the Gremlin CSV format or OPENCYPHER, which identies the openCypher load format.
*/
public val format: aws.sdk.kotlin.services.neptunegraph.model.Format? = builder.format
/**
* The unique identifier of the Neptune Analytics graph.
*/
public val graphIdentifier: kotlin.String? = builder.graphIdentifier
/**
* Options for how to perform an import.
*/
public val importOptions: aws.sdk.kotlin.services.neptunegraph.model.ImportOptions? = builder.importOptions
/**
* The ARN of the IAM role that will allow access to the data that is to be imported.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* A URL identifying the location of the data to be imported. This can be an Amazon S3 path, or can point to a Neptune database endpoint or snapshot.
*/
public val source: kotlin.String? = builder.source
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunegraph.model.StartImportTaskRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartImportTaskRequest(")
append("blankNodeHandling=$blankNodeHandling,")
append("failOnError=$failOnError,")
append("format=$format,")
append("graphIdentifier=$graphIdentifier,")
append("importOptions=$importOptions,")
append("roleArn=$roleArn,")
append("source=$source")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = blankNodeHandling?.hashCode() ?: 0
result = 31 * result + (failOnError?.hashCode() ?: 0)
result = 31 * result + (format?.hashCode() ?: 0)
result = 31 * result + (graphIdentifier?.hashCode() ?: 0)
result = 31 * result + (importOptions?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (source?.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 StartImportTaskRequest
if (blankNodeHandling != other.blankNodeHandling) return false
if (failOnError != other.failOnError) return false
if (format != other.format) return false
if (graphIdentifier != other.graphIdentifier) return false
if (importOptions != other.importOptions) return false
if (roleArn != other.roleArn) return false
if (source != other.source) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunegraph.model.StartImportTaskRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The method to handle blank nodes in the dataset. Currently, only `convertToIri` is supported, meaning blank nodes are converted to unique IRIs at load time. Must be provided when format is `ntriples`. For more information, see [Handling RDF values](https://docs.aws.amazon.com/neptune-analytics/latest/userguide/using-rdf-data.html#rdf-handling).
*/
public var blankNodeHandling: aws.sdk.kotlin.services.neptunegraph.model.BlankNodeHandling? = null
/**
* If set to true, the task halts when an import error is encountered. If set to false, the task skips the data that caused the error and continues if possible.
*/
public var failOnError: kotlin.Boolean? = null
/**
* Specifies the format of Amazon S3 data to be imported. Valid values are CSV, which identifies the Gremlin CSV format or OPENCYPHER, which identies the openCypher load format.
*/
public var format: aws.sdk.kotlin.services.neptunegraph.model.Format? = null
/**
* The unique identifier of the Neptune Analytics graph.
*/
public var graphIdentifier: kotlin.String? = null
/**
* Options for how to perform an import.
*/
public var importOptions: aws.sdk.kotlin.services.neptunegraph.model.ImportOptions? = null
/**
* The ARN of the IAM role that will allow access to the data that is to be imported.
*/
public var roleArn: kotlin.String? = null
/**
* A URL identifying the location of the data to be imported. This can be an Amazon S3 path, or can point to a Neptune database endpoint or snapshot.
*/
public var source: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunegraph.model.StartImportTaskRequest) : this() {
this.blankNodeHandling = x.blankNodeHandling
this.failOnError = x.failOnError
this.format = x.format
this.graphIdentifier = x.graphIdentifier
this.importOptions = x.importOptions
this.roleArn = x.roleArn
this.source = x.source
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunegraph.model.StartImportTaskRequest = StartImportTaskRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}