public static final class CfnSchemaProps.Builder
extends java.lang.Object
CfnSchemaProps
Constructor and Description |
---|
Builder() |
public CfnSchemaProps.Builder compatibility(java.lang.String compatibility)
CfnSchemaProps.getCompatibility()
compatibility
- The compatibility mode of the schema. This parameter is required.this
public CfnSchemaProps.Builder dataFormat(java.lang.String dataFormat)
CfnSchemaProps.getDataFormat()
dataFormat
- The data format of the schema definition. This parameter is required.
Currently only AVRO
is supported.this
public CfnSchemaProps.Builder name(java.lang.String name)
CfnSchemaProps.getName()
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.this
public CfnSchemaProps.Builder schemaDefinition(java.lang.String schemaDefinition)
CfnSchemaProps.getSchemaDefinition()
schemaDefinition
- The schema definition using the `DataFormat` setting for `SchemaName` . This parameter is required.this
public CfnSchemaProps.Builder checkpointVersion(IResolvable checkpointVersion)
CfnSchemaProps.getCheckpointVersion()
checkpointVersion
- Specify the `VersionNumber` or the `IsLatest` for setting the checkpoint for the schema.
This is only required for updating a checkpoint.this
public CfnSchemaProps.Builder checkpointVersion(CfnSchema.SchemaVersionProperty checkpointVersion)
CfnSchemaProps.getCheckpointVersion()
checkpointVersion
- Specify the `VersionNumber` or the `IsLatest` for setting the checkpoint for the schema.
This is only required for updating a checkpoint.this
public CfnSchemaProps.Builder description(java.lang.String description)
CfnSchemaProps.getDescription()
description
- A description of the schema if specified when created.this
public CfnSchemaProps.Builder registry(IResolvable registry)
CfnSchemaProps.getRegistry()
registry
- The registry where a schema is stored.this
public CfnSchemaProps.Builder registry(CfnSchema.RegistryProperty registry)
CfnSchemaProps.getRegistry()
registry
- The registry where a schema is stored.this
public CfnSchemaProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnSchemaProps.getTags()
tags
- AWS tags that contain a key value pair and may be searched by console, command line, or API.this
public CfnSchemaProps build()
CfnSchemaProps
java.lang.NullPointerException
- if any required attribute was not provided