Interface CustomMetadataSchemaConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CustomMetadataSchemaConfiguration.Builder,,CustomMetadataSchemaConfiguration> SdkBuilder<CustomMetadataSchemaConfiguration.Builder,,CustomMetadataSchemaConfiguration> SdkPojo
- Enclosing class:
CustomMetadataSchemaConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefaultSchema(String defaultSchema) The default JSON Schema that applies to record types without a specific override.recordTypeSchemaOverrides(Collection<RecordTypeSchemaOverride> recordTypeSchemaOverrides) A list of per-record-type schema overrides.recordTypeSchemaOverrides(Consumer<RecordTypeSchemaOverride.Builder>... recordTypeSchemaOverrides) A list of per-record-type schema overrides.recordTypeSchemaOverrides(RecordTypeSchemaOverride... recordTypeSchemaOverrides) A list of per-record-type schema overrides.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
defaultSchema
The default JSON Schema that applies to record types without a specific override. Supported property types are
string,stringwith anenumconstraint,stringwith auriformat, andboolean.- Parameters:
defaultSchema- The default JSON Schema that applies to record types without a specific override. Supported property types arestring,stringwith anenumconstraint,stringwith auriformat, andboolean.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recordTypeSchemaOverrides
CustomMetadataSchemaConfiguration.Builder recordTypeSchemaOverrides(Collection<RecordTypeSchemaOverride> recordTypeSchemaOverrides) A list of per-record-type schema overrides. When a record's type matches an override, that override's schema is used instead of the default schema for validation. If you don't specify an override for a record type, the default schema applies. If no default schema exists, custom metadata on records of that type is rejected.
- Parameters:
recordTypeSchemaOverrides- A list of per-record-type schema overrides. When a record's type matches an override, that override's schema is used instead of the default schema for validation. If you don't specify an override for a record type, the default schema applies. If no default schema exists, custom metadata on records of that type is rejected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recordTypeSchemaOverrides
CustomMetadataSchemaConfiguration.Builder recordTypeSchemaOverrides(RecordTypeSchemaOverride... recordTypeSchemaOverrides) A list of per-record-type schema overrides. When a record's type matches an override, that override's schema is used instead of the default schema for validation. If you don't specify an override for a record type, the default schema applies. If no default schema exists, custom metadata on records of that type is rejected.
- Parameters:
recordTypeSchemaOverrides- A list of per-record-type schema overrides. When a record's type matches an override, that override's schema is used instead of the default schema for validation. If you don't specify an override for a record type, the default schema applies. If no default schema exists, custom metadata on records of that type is rejected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recordTypeSchemaOverrides
CustomMetadataSchemaConfiguration.Builder recordTypeSchemaOverrides(Consumer<RecordTypeSchemaOverride.Builder>... recordTypeSchemaOverrides) A list of per-record-type schema overrides. When a record's type matches an override, that override's schema is used instead of the default schema for validation. If you don't specify an override for a record type, the default schema applies. If no default schema exists, custom metadata on records of that type is rejected.
This is a convenience method that creates an instance of theRecordTypeSchemaOverride.Builderavoiding the need to create one manually viaRecordTypeSchemaOverride.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecordTypeSchemaOverrides(List<RecordTypeSchemaOverride>).- Parameters:
recordTypeSchemaOverrides- a consumer that will call methods onRecordTypeSchemaOverride.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-