Class CodeConfiguration


  • public final class CodeConfiguration
    extends Object
    Configuration for a scoring code asset.
    • Constructor Detail

      • CodeConfiguration

        public CodeConfiguration()
    • Method Detail

      • codeId

        public String codeId()
        Get the codeId property: ARM resource ID of the code asset.
        Returns:
        the codeId value.
      • withCodeId

        public CodeConfiguration withCodeId​(String codeId)
        Set the codeId property: ARM resource ID of the code asset.
        Parameters:
        codeId - the codeId value to set.
        Returns:
        the CodeConfiguration object itself.
      • scoringScript

        public String scoringScript()
        Get the scoringScript property: [Required] The script to execute on startup. eg. "score.py".
        Returns:
        the scoringScript value.
      • withScoringScript

        public CodeConfiguration withScoringScript​(String scoringScript)
        Set the scoringScript property: [Required] The script to execute on startup. eg. "score.py".
        Parameters:
        scoringScript - the scoringScript value to set.
        Returns:
        the CodeConfiguration object itself.
      • validate

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