Class JobService


  • public final class JobService
    extends Object
    Job endpoint definition.
    • Constructor Detail

      • JobService

        public JobService()
    • Method Detail

      • endpoint

        public String endpoint()
        Get the endpoint property: Url for endpoint.
        Returns:
        the endpoint value.
      • withEndpoint

        public JobService withEndpoint​(String endpoint)
        Set the endpoint property: Url for endpoint.
        Parameters:
        endpoint - the endpoint value to set.
        Returns:
        the JobService object itself.
      • errorMessage

        public String errorMessage()
        Get the errorMessage property: Any error in the service.
        Returns:
        the errorMessage value.
      • jobServiceType

        public String jobServiceType()
        Get the jobServiceType property: Endpoint type.
        Returns:
        the jobServiceType value.
      • withJobServiceType

        public JobService withJobServiceType​(String jobServiceType)
        Set the jobServiceType property: Endpoint type.
        Parameters:
        jobServiceType - the jobServiceType value to set.
        Returns:
        the JobService object itself.
      • port

        public Integer port()
        Get the port property: Port for endpoint.
        Returns:
        the port value.
      • withPort

        public JobService withPort​(Integer port)
        Set the port property: Port for endpoint.
        Parameters:
        port - the port value to set.
        Returns:
        the JobService object itself.
      • properties

        public Map<String,​String> properties()
        Get the properties property: Additional properties to set on the endpoint.
        Returns:
        the properties value.
      • withProperties

        public JobService withProperties​(Map<String,​String> properties)
        Set the properties property: Additional properties to set on the endpoint.
        Parameters:
        properties - the properties value to set.
        Returns:
        the JobService object itself.
      • status

        public String status()
        Get the status property: Status of endpoint.
        Returns:
        the status value.
      • validate

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