Class CfnTable.SchemaReferenceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnTable.SchemaReferenceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.SchemaReferenceProperty>
- Enclosing interface:
CfnTable.SchemaReferenceProperty
@Stability(Stable)
public static final class CfnTable.SchemaReferenceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.SchemaReferenceProperty>
A builder for
CfnTable.SchemaReferenceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.schemaId
(IResolvable schemaId) Sets the value ofCfnTable.SchemaReferenceProperty.getSchemaId()
schemaId
(CfnTable.SchemaIdProperty schemaId) Sets the value ofCfnTable.SchemaReferenceProperty.getSchemaId()
schemaVersionId
(String schemaVersionId) Sets the value ofCfnTable.SchemaReferenceProperty.getSchemaVersionId()
schemaVersionNumber
(Number schemaVersionNumber) Sets the value ofCfnTable.SchemaReferenceProperty.getSchemaVersionNumber()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
schemaId
Sets the value ofCfnTable.SchemaReferenceProperty.getSchemaId()
- Parameters:
schemaId
- A structure that contains schema identity fields. Either this or theSchemaVersionId
has to be provided.- Returns:
this
-
schemaId
@Stability(Stable) public CfnTable.SchemaReferenceProperty.Builder schemaId(CfnTable.SchemaIdProperty schemaId) Sets the value ofCfnTable.SchemaReferenceProperty.getSchemaId()
- Parameters:
schemaId
- A structure that contains schema identity fields. Either this or theSchemaVersionId
has to be provided.- Returns:
this
-
schemaVersionId
@Stability(Stable) public CfnTable.SchemaReferenceProperty.Builder schemaVersionId(String schemaVersionId) Sets the value ofCfnTable.SchemaReferenceProperty.getSchemaVersionId()
- Parameters:
schemaVersionId
- The unique ID assigned to a version of the schema. Either this or theSchemaId
has to be provided.- Returns:
this
-
schemaVersionNumber
@Stability(Stable) public CfnTable.SchemaReferenceProperty.Builder schemaVersionNumber(Number schemaVersionNumber) Sets the value ofCfnTable.SchemaReferenceProperty.getSchemaVersionNumber()
- Parameters:
schemaVersionNumber
- The version number of the schema.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTable.SchemaReferenceProperty>
- Returns:
- a new instance of
CfnTable.SchemaReferenceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-