Interface Schema.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<Schema.Builder,Schema>
,SdkBuilder<Schema.Builder,Schema>
,SdkPojo
- Enclosing class:
- Schema
public static interface Schema.Builder extends SdkPojo, CopyableBuilder<Schema.Builder,Schema>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Schema.Builder
analysisMethod(String analysisMethod)
The analysis method for the schema.Schema.Builder
analysisMethod(AnalysisMethod analysisMethod)
The analysis method for the schema.Schema.Builder
analysisRuleTypes(Collection<AnalysisRuleType> analysisRuleTypes)
The analysis rule types that are associated with the schema.Schema.Builder
analysisRuleTypes(AnalysisRuleType... analysisRuleTypes)
The analysis rule types that are associated with the schema.Schema.Builder
analysisRuleTypesWithStrings(String... analysisRuleTypes)
The analysis rule types that are associated with the schema.Schema.Builder
analysisRuleTypesWithStrings(Collection<String> analysisRuleTypes)
The analysis rule types that are associated with the schema.Schema.Builder
collaborationArn(String collaborationArn)
The unique Amazon Resource Name (ARN) for the collaboration that the schema belongs to.Schema.Builder
collaborationId(String collaborationId)
The unique ID for the collaboration that the schema belongs to.Schema.Builder
columns(Collection<Column> columns)
The columns for the relation that this schema represents.Schema.Builder
columns(Consumer<Column.Builder>... columns)
The columns for the relation that this schema represents.Schema.Builder
columns(Column... columns)
The columns for the relation that this schema represents.Schema.Builder
createTime(Instant createTime)
The time at which the schema was created.Schema.Builder
creatorAccountId(String creatorAccountId)
The unique account ID for the Amazon Web Services account that owns the schema.Schema.Builder
description(String description)
A description for the schema.Schema.Builder
name(String name)
A name for the schema.Schema.Builder
partitionKeys(Collection<Column> partitionKeys)
The partition keys for the dataset underlying this schema.Schema.Builder
partitionKeys(Consumer<Column.Builder>... partitionKeys)
The partition keys for the dataset underlying this schema.Schema.Builder
partitionKeys(Column... partitionKeys)
The partition keys for the dataset underlying this schema.Schema.Builder
schemaStatusDetails(Collection<SchemaStatusDetail> schemaStatusDetails)
Details about the status of the schema.Schema.Builder
schemaStatusDetails(Consumer<SchemaStatusDetail.Builder>... schemaStatusDetails)
Details about the status of the schema.Schema.Builder
schemaStatusDetails(SchemaStatusDetail... schemaStatusDetails)
Details about the status of the schema.default Schema.Builder
schemaTypeProperties(Consumer<SchemaTypeProperties.Builder> schemaTypeProperties)
The schema type properties.Schema.Builder
schemaTypeProperties(SchemaTypeProperties schemaTypeProperties)
The schema type properties.Schema.Builder
type(String type)
The type of schema.Schema.Builder
type(SchemaType type)
The type of schema.Schema.Builder
updateTime(Instant updateTime)
The most recent time at which the schema was updated.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
columns
Schema.Builder columns(Collection<Column> columns)
The columns for the relation that this schema represents.
- Parameters:
columns
- The columns for the relation that this schema represents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columns
Schema.Builder columns(Column... columns)
The columns for the relation that this schema represents.
- Parameters:
columns
- The columns for the relation that this schema represents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columns
Schema.Builder columns(Consumer<Column.Builder>... columns)
The columns for the relation that this schema represents.
This is a convenience method that creates an instance of theColumn.Builder
avoiding the need to create one manually viaColumn.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#columns(List
.) - Parameters:
columns
- a consumer that will call methods onColumn.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#columns(java.util.Collection
)
-
partitionKeys
Schema.Builder partitionKeys(Collection<Column> partitionKeys)
The partition keys for the dataset underlying this schema.
- Parameters:
partitionKeys
- The partition keys for the dataset underlying this schema.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partitionKeys
Schema.Builder partitionKeys(Column... partitionKeys)
The partition keys for the dataset underlying this schema.
- Parameters:
partitionKeys
- The partition keys for the dataset underlying this schema.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partitionKeys
Schema.Builder partitionKeys(Consumer<Column.Builder>... partitionKeys)
The partition keys for the dataset underlying this schema.
This is a convenience method that creates an instance of theColumn.Builder
avoiding the need to create one manually viaColumn.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#partitionKeys(List
.) - Parameters:
partitionKeys
- a consumer that will call methods onColumn.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#partitionKeys(java.util.Collection
)
-
analysisRuleTypesWithStrings
Schema.Builder analysisRuleTypesWithStrings(Collection<String> analysisRuleTypes)
The analysis rule types that are associated with the schema. Currently, only one entry is present.
- Parameters:
analysisRuleTypes
- The analysis rule types that are associated with the schema. Currently, only one entry is present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
analysisRuleTypesWithStrings
Schema.Builder analysisRuleTypesWithStrings(String... analysisRuleTypes)
The analysis rule types that are associated with the schema. Currently, only one entry is present.
- Parameters:
analysisRuleTypes
- The analysis rule types that are associated with the schema. Currently, only one entry is present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
analysisRuleTypes
Schema.Builder analysisRuleTypes(Collection<AnalysisRuleType> analysisRuleTypes)
The analysis rule types that are associated with the schema. Currently, only one entry is present.
- Parameters:
analysisRuleTypes
- The analysis rule types that are associated with the schema. Currently, only one entry is present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
analysisRuleTypes
Schema.Builder analysisRuleTypes(AnalysisRuleType... analysisRuleTypes)
The analysis rule types that are associated with the schema. Currently, only one entry is present.
- Parameters:
analysisRuleTypes
- The analysis rule types that are associated with the schema. Currently, only one entry is present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
analysisMethod
Schema.Builder analysisMethod(String analysisMethod)
The analysis method for the schema. The only valid value is currently
DIRECT_QUERY
.- Parameters:
analysisMethod
- The analysis method for the schema. The only valid value is currentlyDIRECT_QUERY
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AnalysisMethod
,AnalysisMethod
-
analysisMethod
Schema.Builder analysisMethod(AnalysisMethod analysisMethod)
The analysis method for the schema. The only valid value is currently
DIRECT_QUERY
.- Parameters:
analysisMethod
- The analysis method for the schema. The only valid value is currentlyDIRECT_QUERY
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AnalysisMethod
,AnalysisMethod
-
creatorAccountId
Schema.Builder creatorAccountId(String creatorAccountId)
The unique account ID for the Amazon Web Services account that owns the schema.
- Parameters:
creatorAccountId
- The unique account ID for the Amazon Web Services account that owns the schema.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Schema.Builder name(String name)
A name for the schema. The schema relation is referred to by this name when queried by a protected query.
- Parameters:
name
- A name for the schema. The schema relation is referred to by this name when queried by a protected query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
collaborationId
Schema.Builder collaborationId(String collaborationId)
The unique ID for the collaboration that the schema belongs to.
- Parameters:
collaborationId
- The unique ID for the collaboration that the schema belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
collaborationArn
Schema.Builder collaborationArn(String collaborationArn)
The unique Amazon Resource Name (ARN) for the collaboration that the schema belongs to.
- Parameters:
collaborationArn
- The unique Amazon Resource Name (ARN) for the collaboration that the schema belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
Schema.Builder description(String description)
A description for the schema.
- Parameters:
description
- A description for the schema.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTime
Schema.Builder createTime(Instant createTime)
The time at which the schema was created.
- Parameters:
createTime
- The time at which the schema was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateTime
Schema.Builder updateTime(Instant updateTime)
The most recent time at which the schema was updated.
- Parameters:
updateTime
- The most recent time at which the schema was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
Schema.Builder type(String type)
The type of schema.
- Parameters:
type
- The type of schema.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SchemaType
,SchemaType
-
type
Schema.Builder type(SchemaType type)
The type of schema.
- Parameters:
type
- The type of schema.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SchemaType
,SchemaType
-
schemaStatusDetails
Schema.Builder schemaStatusDetails(Collection<SchemaStatusDetail> schemaStatusDetails)
Details about the status of the schema. Currently, only one entry is present.
- Parameters:
schemaStatusDetails
- Details about the status of the schema. Currently, only one entry is present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schemaStatusDetails
Schema.Builder schemaStatusDetails(SchemaStatusDetail... schemaStatusDetails)
Details about the status of the schema. Currently, only one entry is present.
- Parameters:
schemaStatusDetails
- Details about the status of the schema. Currently, only one entry is present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schemaStatusDetails
Schema.Builder schemaStatusDetails(Consumer<SchemaStatusDetail.Builder>... schemaStatusDetails)
Details about the status of the schema. Currently, only one entry is present.
This is a convenience method that creates an instance of theSchemaStatusDetail.Builder
avoiding the need to create one manually viaSchemaStatusDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#schemaStatusDetails(List
.) - Parameters:
schemaStatusDetails
- a consumer that will call methods onSchemaStatusDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#schemaStatusDetails(java.util.Collection
)
-
schemaTypeProperties
Schema.Builder schemaTypeProperties(SchemaTypeProperties schemaTypeProperties)
The schema type properties.
- Parameters:
schemaTypeProperties
- The schema type properties.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schemaTypeProperties
default Schema.Builder schemaTypeProperties(Consumer<SchemaTypeProperties.Builder> schemaTypeProperties)
The schema type properties.
This is a convenience method that creates an instance of theSchemaTypeProperties.Builder
avoiding the need to create one manually viaSchemaTypeProperties.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toschemaTypeProperties(SchemaTypeProperties)
.- Parameters:
schemaTypeProperties
- a consumer that will call methods onSchemaTypeProperties.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
schemaTypeProperties(SchemaTypeProperties)
-
-