Class CfnGraphPropsMixin.ImportTaskProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.neptunegraph.CfnGraphPropsMixin.ImportTaskProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGraphPropsMixin.ImportTaskProperty>
- Enclosing interface:
CfnGraphPropsMixin.ImportTaskProperty
@Stability(Stable)
public static final class CfnGraphPropsMixin.ImportTaskProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGraphPropsMixin.ImportTaskProperty>
A builder for
CfnGraphPropsMixin.ImportTaskProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblankNodeHandling(String blankNodeHandling) Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getBlankNodeHandling()build()Builds the configured instance.failOnError(Boolean failOnError) Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getFailOnError()failOnError(IResolvable failOnError) Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getFailOnError()Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getFormat()importOptions(CfnGraphPropsMixin.ImportOptionsProperty importOptions) Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getImportOptions()importOptions(IResolvable importOptions) Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getImportOptions()maxProvisionedMemory(Number maxProvisionedMemory) Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getMaxProvisionedMemory()minProvisionedMemory(Number minProvisionedMemory) Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getMinProvisionedMemory()parquetType(String parquetType) Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getParquetType()Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getRoleArn()Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blankNodeHandling
@Stability(Stable) public CfnGraphPropsMixin.ImportTaskProperty.Builder blankNodeHandling(String blankNodeHandling) Sets the value ofCfnGraphPropsMixin.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
@Stability(Stable) public CfnGraphPropsMixin.ImportTaskProperty.Builder failOnError(Boolean failOnError) Sets the value ofCfnGraphPropsMixin.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
@Stability(Stable) public CfnGraphPropsMixin.ImportTaskProperty.Builder failOnError(IResolvable failOnError) Sets the value ofCfnGraphPropsMixin.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 ofCfnGraphPropsMixin.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 CfnGraphPropsMixin.ImportTaskProperty.Builder importOptions(IResolvable importOptions) Sets the value ofCfnGraphPropsMixin.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 CfnGraphPropsMixin.ImportTaskProperty.Builder importOptions(CfnGraphPropsMixin.ImportOptionsProperty importOptions) Sets the value ofCfnGraphPropsMixin.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 CfnGraphPropsMixin.ImportTaskProperty.Builder maxProvisionedMemory(Number maxProvisionedMemory) Sets the value ofCfnGraphPropsMixin.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 CfnGraphPropsMixin.ImportTaskProperty.Builder minProvisionedMemory(Number minProvisionedMemory) Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getMinProvisionedMemory()- Parameters:
minProvisionedMemory- The minimum provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Default: 16- Returns:
this
-
parquetType
@Stability(Stable) public CfnGraphPropsMixin.ImportTaskProperty.Builder parquetType(String parquetType) Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getParquetType()- Parameters:
parquetType- The parquet type of the import task. Required when Format is PARQUET.- Returns:
this
-
roleArn
Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role that will allow access to the data that is to be imported.- Returns:
this
-
source
Sets the value ofCfnGraphPropsMixin.ImportTaskProperty.getSource()- Parameters:
source- A URL identifying to 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGraphPropsMixin.ImportTaskProperty>- Returns:
- a new instance of
CfnGraphPropsMixin.ImportTaskProperty - Throws:
NullPointerException- if any required attribute was not provided
-