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 Details

    • create

      @Stability(Stable) public static CfnSchema.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnSchema.Builder.
    • content

      @Stability(Stable) public CfnSchema.Builder content(String content)
      The source of the schema definition.

      Parameters:
      content - The source of the schema definition. This parameter is required.
      Returns:
      this
    • registryName

      @Stability(Stable) public CfnSchema.Builder registryName(String registryName)
      The name of the schema registry.

      Parameters:
      registryName - The name of the schema registry. This parameter is required.
      Returns:
      this
    • type

      @Stability(Stable) public CfnSchema.Builder type(String type)
      The type of schema.

      Valid types include OpenApi3 and JSONSchemaDraft4 .

      Parameters:
      type - The type of schema. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnSchema.Builder description(String description)
      A description of the schema.

      Parameters:
      description - A description of the schema. This parameter is required.
      Returns:
      this
    • schemaName

      @Stability(Stable) public CfnSchema.Builder schemaName(String schemaName)
      The name of the schema.

      Parameters:
      schemaName - The name of the schema. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnSchema.Builder tags(List<? extends CfnSchema.TagsEntryProperty> tags)
      Tags associated with the schema.

      Parameters:
      tags - Tags associated with the schema. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnSchema build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnSchema>
      Returns:
      a newly built instance of CfnSchema.