Class CfnGraph.ImportTaskProperty.Builder
java.lang.Object
software.amazon.awscdk.services.neptunegraph.CfnGraph.ImportTaskProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGraph.ImportTaskProperty>
- Enclosing interface:
CfnGraph.ImportTaskProperty
@Stability(Stable)
public static final class CfnGraph.ImportTaskProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGraph.ImportTaskProperty>
A builder for
CfnGraph.ImportTaskProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblankNodeHandling(String blankNodeHandling) Sets the value ofCfnGraph.ImportTaskProperty.getBlankNodeHandling()build()Builds the configured instance.failOnError(Boolean failOnError) Sets the value ofCfnGraph.ImportTaskProperty.getFailOnError()failOnError(IResolvable failOnError) Sets the value ofCfnGraph.ImportTaskProperty.getFailOnError()Sets the value ofCfnGraph.ImportTaskProperty.getFormat()importOptions(IResolvable importOptions) Sets the value ofCfnGraph.ImportTaskProperty.getImportOptions()importOptions(CfnGraph.ImportOptionsProperty importOptions) Sets the value ofCfnGraph.ImportTaskProperty.getImportOptions()maxProvisionedMemory(Number maxProvisionedMemory) Sets the value ofCfnGraph.ImportTaskProperty.getMaxProvisionedMemory()minProvisionedMemory(Number minProvisionedMemory) Sets the value ofCfnGraph.ImportTaskProperty.getMinProvisionedMemory()parquetType(String parquetType) Sets the value ofCfnGraph.ImportTaskProperty.getParquetType()Sets the value ofCfnGraph.ImportTaskProperty.getRoleArn()Sets the value ofCfnGraph.ImportTaskProperty.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnGraph.ImportTaskProperty.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role that will allow access to the data that is to be imported. This parameter is required.- Returns:
this
-
source
Sets the value ofCfnGraph.ImportTaskProperty.getSource()- Parameters:
source- A URL identifying to the location of the data to be imported. This parameter is required. This can be an Amazon S3 path, or can point to a Neptune database endpoint or snapshot.- Returns:
this
-
blankNodeHandling
@Stability(Stable) public CfnGraph.ImportTaskProperty.Builder blankNodeHandling(String blankNodeHandling) Sets the value ofCfnGraph.ImportTaskProperty.getBlankNodeHandling()- Parameters:
blankNodeHandling- 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- Returns:
this
-
failOnError
Sets the value ofCfnGraph.ImportTaskProperty.getFailOnError()- Parameters:
failOnError- 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.- Returns:
this
-
failOnError
Sets the value ofCfnGraph.ImportTaskProperty.getFailOnError()- Parameters:
failOnError- 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.- Returns:
this
-
format
Sets the value ofCfnGraph.ImportTaskProperty.getFormat()- Parameters:
format- Specifies the format of S3 data to be imported. Valid values are CSV, which identifies the Gremlin CSV format, OPEN_CYPHER, which identifies the openCypher load format, or NTRIPLES, which identifies the RDF n-triples format.- Returns:
this
-
importOptions
@Stability(Stable) public CfnGraph.ImportTaskProperty.Builder importOptions(IResolvable importOptions) Sets the value ofCfnGraph.ImportTaskProperty.getImportOptions()- Parameters:
importOptions- Contains options for controlling the import process. For example, if the failOnError key is set to false, the import skips the data that caused the error and continues if possible (whereas if set to true, the default, or if omitted, the import operation halts immediately when an error is encountered).- Returns:
this
-
importOptions
@Stability(Stable) public CfnGraph.ImportTaskProperty.Builder importOptions(CfnGraph.ImportOptionsProperty importOptions) Sets the value ofCfnGraph.ImportTaskProperty.getImportOptions()- Parameters:
importOptions- Contains options for controlling the import process. For example, if the failOnError key is set to false, the import skips the data that caused the error and continues if possible (whereas if set to true, the default, or if omitted, the import operation halts immediately when an error is encountered).- Returns:
this
-
maxProvisionedMemory
@Stability(Stable) public CfnGraph.ImportTaskProperty.Builder maxProvisionedMemory(Number maxProvisionedMemory) Sets the value ofCfnGraph.ImportTaskProperty.getMaxProvisionedMemory()- Parameters:
maxProvisionedMemory- The maximum provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Default: 1024, or the approved upper limit for your account. If both the minimum and maximum values are specified, the final provisioned-memory will be chosen per the actual size of your imported data. If neither value is specified, 128 m-NCUs are used.- Returns:
this
-
minProvisionedMemory
@Stability(Stable) public CfnGraph.ImportTaskProperty.Builder minProvisionedMemory(Number minProvisionedMemory) Sets the value ofCfnGraph.ImportTaskProperty.getMinProvisionedMemory()- Parameters:
minProvisionedMemory- The minimum provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Default: 16- Returns:
this
-
parquetType
Sets the value ofCfnGraph.ImportTaskProperty.getParquetType()- Parameters:
parquetType- The parquet type of the import task. Required when Format is PARQUET.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGraph.ImportTaskProperty>- Returns:
- a new instance of
CfnGraph.ImportTaskProperty - Throws:
NullPointerException- if any required attribute was not provided
-