Class CfnSchemaProps.Builder
java.lang.Object
software.amazon.awscdk.services.eventschemas.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.Sets the value ofCfnSchemaProps.getContent()
description
(String description) Sets the value ofCfnSchemaProps.getDescription()
registryName
(String registryName) Sets the value ofCfnSchemaProps.getRegistryName()
schemaName
(String schemaName) Sets the value ofCfnSchemaProps.getSchemaName()
tags
(List<? extends CfnSchema.TagsEntryProperty> tags) Sets the value ofCfnSchemaProps.getTags()
Sets the value ofCfnSchemaProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
Sets the value ofCfnSchemaProps.getContent()
- Parameters:
content
- The source of the schema definition. This parameter is required.- Returns:
this
-
registryName
Sets the value ofCfnSchemaProps.getRegistryName()
- Parameters:
registryName
- The name of the schema registry. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnSchemaProps.getType()
- Parameters:
type
- The type of schema. This parameter is required. Valid types includeOpenApi3
andJSONSchemaDraft4
.- Returns:
this
-
description
Sets the value ofCfnSchemaProps.getDescription()
- Parameters:
description
- A description of the schema.- Returns:
this
-
schemaName
Sets the value ofCfnSchemaProps.getSchemaName()
- Parameters:
schemaName
- The name of the schema.- Returns:
this
-
tags
@Stability(Stable) public CfnSchemaProps.Builder tags(List<? extends CfnSchema.TagsEntryProperty> tags) Sets the value ofCfnSchemaProps.getTags()
- Parameters:
tags
- Tags associated with the schema.- 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
-