Class GlobalSchemaContractProperties


  • public final class GlobalSchemaContractProperties
    extends Object
    Schema create or update contract Properties.
    • Constructor Detail

      • GlobalSchemaContractProperties

        public GlobalSchemaContractProperties()
    • Method Detail

      • schemaType

        public SchemaType schemaType()
        Get the schemaType property: Schema Type. Immutable.
        Returns:
        the schemaType value.
      • withSchemaType

        public GlobalSchemaContractProperties withSchemaType​(SchemaType schemaType)
        Set the schemaType property: Schema Type. Immutable.
        Parameters:
        schemaType - the schemaType value to set.
        Returns:
        the GlobalSchemaContractProperties object itself.
      • description

        public String description()
        Get the description property: Free-form schema entity description.
        Returns:
        the description value.
      • withDescription

        public GlobalSchemaContractProperties withDescription​(String description)
        Set the description property: Free-form schema entity description.
        Parameters:
        description - the description value to set.
        Returns:
        the GlobalSchemaContractProperties object itself.
      • value

        public Object value()
        Get the value property: Json-encoded string for non json-based schema.
        Returns:
        the value value.
      • withValue

        public GlobalSchemaContractProperties withValue​(Object value)
        Set the value property: Json-encoded string for non json-based schema.
        Parameters:
        value - the value value to set.
        Returns:
        the GlobalSchemaContractProperties object itself.
      • document

        public Object document()
        Get the document property: Global Schema document object for json-based schema formats(e.g. json schema).
        Returns:
        the document value.
      • withDocument

        public GlobalSchemaContractProperties withDocument​(Object document)
        Set the document property: Global Schema document object for json-based schema formats(e.g. json schema).
        Parameters:
        document - the document value to set.
        Returns:
        the GlobalSchemaContractProperties object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.