Class PolicyContractProperties


  • public final class PolicyContractProperties
    extends Object
    Policy contract Properties.
    • Constructor Detail

      • PolicyContractProperties

        public PolicyContractProperties()
    • Method Detail

      • value

        public String value()
        Get the value property: Contents of the Policy as defined by the format.
        Returns:
        the value value.
      • withValue

        public PolicyContractProperties withValue​(String value)
        Set the value property: Contents of the Policy as defined by the format.
        Parameters:
        value - the value value to set.
        Returns:
        the PolicyContractProperties object itself.
      • format

        public PolicyContentFormat format()
        Get the format property: Format of the policyContent.
        Returns:
        the format value.
      • withFormat

        public PolicyContractProperties withFormat​(PolicyContentFormat format)
        Set the format property: Format of the policyContent.
        Parameters:
        format - the format value to set.
        Returns:
        the PolicyContractProperties object itself.
      • validate

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