Class CfnSchemaProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnSchemaProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSchemaProps>
- Enclosing interface:
CfnSchemaProps
@Stability(Stable)
public static final class CfnSchemaProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSchemaProps>
A builder for
CfnSchemaProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.checkpointVersion
(IResolvable checkpointVersion) Sets the value ofCfnSchemaProps.getCheckpointVersion()
checkpointVersion
(CfnSchema.SchemaVersionProperty checkpointVersion) Sets the value ofCfnSchemaProps.getCheckpointVersion()
compatibility
(String compatibility) Sets the value ofCfnSchemaProps.getCompatibility()
dataFormat
(String dataFormat) Sets the value ofCfnSchemaProps.getDataFormat()
description
(String description) Sets the value ofCfnSchemaProps.getDescription()
Sets the value ofCfnSchemaProps.getName()
registry
(IResolvable registry) Sets the value ofCfnSchemaProps.getRegistry()
registry
(CfnSchema.RegistryProperty registry) Sets the value ofCfnSchemaProps.getRegistry()
schemaDefinition
(String schemaDefinition) Sets the value ofCfnSchemaProps.getSchemaDefinition()
Sets the value ofCfnSchemaProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
compatibility
Sets the value ofCfnSchemaProps.getCompatibility()
- Parameters:
compatibility
- The compatibility mode of the schema. This parameter is required.- Returns:
this
-
dataFormat
Sets the value ofCfnSchemaProps.getDataFormat()
- Parameters:
dataFormat
- The data format of the schema definition. This parameter is required. Currently onlyAVRO
is supported.- Returns:
this
-
name
Sets the value ofCfnSchemaProps.getName()
- Parameters:
name
- Name of the schema to be created of max length of 255, and may only contain letters, numbers, hyphen, underscore, dollar sign, or hash mark. This parameter is required. No whitespace.- Returns:
this
-
schemaDefinition
Sets the value ofCfnSchemaProps.getSchemaDefinition()
- Parameters:
schemaDefinition
- The schema definition using theDataFormat
setting forSchemaName
. This parameter is required.- Returns:
this
-
checkpointVersion
Sets the value ofCfnSchemaProps.getCheckpointVersion()
- Parameters:
checkpointVersion
- Specify theVersionNumber
or theIsLatest
for setting the checkpoint for the schema. This is only required for updating a checkpoint.- Returns:
this
-
checkpointVersion
@Stability(Stable) public CfnSchemaProps.Builder checkpointVersion(CfnSchema.SchemaVersionProperty checkpointVersion) Sets the value ofCfnSchemaProps.getCheckpointVersion()
- Parameters:
checkpointVersion
- Specify theVersionNumber
or theIsLatest
for setting the checkpoint for the schema. This is only required for updating a checkpoint.- Returns:
this
-
description
Sets the value ofCfnSchemaProps.getDescription()
- Parameters:
description
- A description of the schema if specified when created.- Returns:
this
-
registry
Sets the value ofCfnSchemaProps.getRegistry()
- Parameters:
registry
- The registry where a schema is stored.- Returns:
this
-
registry
Sets the value ofCfnSchemaProps.getRegistry()
- Parameters:
registry
- The registry where a schema is stored.- Returns:
this
-
tags
Sets the value ofCfnSchemaProps.getTags()
- Parameters:
tags
- AWS tags that contain a key value pair and may be searched by console, command line, or API.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSchemaProps>
- Returns:
- a new instance of
CfnSchemaProps
- Throws:
NullPointerException
- if any required attribute was not provided
-