Class CfnSchemaMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eventschemas.CfnSchemaMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSchemaMixinProps>
- Enclosing interface:
CfnSchemaMixinProps
@Stability(Stable)
public static final class CfnSchemaMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSchemaMixinProps>
A builder for
CfnSchemaMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSchemaMixinProps.getContent()description(String description) Sets the value ofCfnSchemaMixinProps.getDescription()registryName(String registryName) Sets the value ofCfnSchemaMixinProps.getRegistryName()schemaName(String schemaName) Sets the value ofCfnSchemaMixinProps.getSchemaName()tags(List<? extends CfnSchemaPropsMixin.TagsEntryProperty> tags) Sets the value ofCfnSchemaMixinProps.getTags()Sets the value ofCfnSchemaMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
Sets the value ofCfnSchemaMixinProps.getContent()- Parameters:
content- The source of the schema definition.- Returns:
this
-
description
Sets the value ofCfnSchemaMixinProps.getDescription()- Parameters:
description- A description of the schema.- Returns:
this
-
registryName
Sets the value ofCfnSchemaMixinProps.getRegistryName()- Parameters:
registryName- The name of the schema registry.- Returns:
this
-
schemaName
Sets the value ofCfnSchemaMixinProps.getSchemaName()- Parameters:
schemaName- The name of the schema.- Returns:
this
-
tags
@Stability(Stable) public CfnSchemaMixinProps.Builder tags(List<? extends CfnSchemaPropsMixin.TagsEntryProperty> tags) Sets the value ofCfnSchemaMixinProps.getTags()- Parameters:
tags- Tags associated with the schema.- Returns:
this
-
type
Sets the value ofCfnSchemaMixinProps.getType()- Parameters:
type- The type of schema. Valid types includeOpenApi3andJSONSchemaDraft4.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSchemaMixinProps>- Returns:
- a new instance of
CfnSchemaMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-