Class ContractValidationResponse

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class ContractValidationResponse
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    Response model for contract template YAML validation against ODCS v3.1.0 standard.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getErrors()
      Gets the errors.
      java.lang.String getMessage()
      Gets the message.
      java.lang.Boolean isValid()
      Gets the valid.
      • Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • isValid

        public java.lang.Boolean isValid()
        Gets the valid. Indicates whether the contract template passed validation.
        Returns:
        the valid
      • getMessage

        public java.lang.String getMessage()
        Gets the message. Summary message describing the validation result.
        Returns:
        the message
      • getErrors

        public java.util.List<java.lang.String> getErrors()
        Gets the errors. List of validation error messages if validation failed.
        Returns:
        the errors