Interface CustomMetadataSchemaConfiguration.Builder

  • Method Details

    • defaultSchema

      CustomMetadataSchemaConfiguration.Builder defaultSchema(String defaultSchema)

      The default JSON Schema that applies to record types without a specific override. Supported property types are string, string with an enum constraint, string with a uri format, and boolean.

      Parameters:
      defaultSchema - The default JSON Schema that applies to record types without a specific override. Supported property types are string, string with an enum constraint, string with a uri format, and boolean.
      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 the RecordTypeSchemaOverride.Builder avoiding the need to create one manually via RecordTypeSchemaOverride.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to recordTypeSchemaOverrides(List<RecordTypeSchemaOverride>).

      Parameters:
      recordTypeSchemaOverrides - a consumer that will call methods on RecordTypeSchemaOverride.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: