Class CfnSchema.Builder
java.lang.Object
software.amazon.awscdk.services.eventschemas.CfnSchema.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSchema>
- Enclosing class:
CfnSchema
@Stability(Stable)
public static final class CfnSchema.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSchema>
A fluent builder for
CfnSchema
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The source of the schema definition.static CfnSchema.Builder
description
(String description) A description of the schema.registryName
(String registryName) The name of the schema registry.schemaName
(String schemaName) The name of the schema.tags
(List<? extends CfnSchema.TagsEntryProperty> tags) Tags associated with the schema.The type of schema.
-
Method Details
-
create
@Stability(Stable) public static CfnSchema.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnSchema.Builder
.
-
content
The source of the schema definition.- Parameters:
content
- The source of the schema definition. This parameter is required.- Returns:
this
- See Also:
-
registryName
The name of the schema registry.- Parameters:
registryName
- The name of the schema registry. This parameter is required.- Returns:
this
- See Also:
-
type
The type of schema.Valid types include
OpenApi3
andJSONSchemaDraft4
.- Parameters:
type
- The type of schema. This parameter is required.- Returns:
this
- See Also:
-
description
A description of the schema.- Parameters:
description
- A description of the schema. This parameter is required.- Returns:
this
- See Also:
-
schemaName
The name of the schema.- Parameters:
schemaName
- The name of the schema. This parameter is required.- Returns:
this
- See Also:
-
tags
Tags associated with the schema.- Parameters:
tags
- Tags associated with the schema. This parameter is required.- Returns:
this
- See Also:
-
build
-