pbs-middleware-client/src/main/java/cz/muni/ll/middleware/client/jobs/domain/submitRequest/SubmitJobBuilder.java
/**
     * Set job name. Job name is optional.
     *
     * @param       jobName name of job which will be submitted.
     * @return      a reference to this object.
     * @exception   IllegalArgumentException in case {@code jobName} is {@code null}
     * @exception   IllegalArgumentException in case {@code jobName} is blank string
     */
Set job name. Job name is optional.
@param       jobName name of job which will be submitted.
@return      a reference to this object.
@exception   IllegalArgumentException in case  jobName is  null
@exception   IllegalArgumentException in case  jobName is blank string
Set job name . Job name is optional . @param jobName name of job which will be submitted . @return a reference to this object . @exception IllegalArgumentException in case jobName is null @exception IllegalArgumentException in case jobName is blank string
public SubmitJobBuilder name(String jobName) {
        if (jobName == null) {
            throw new IllegalArgumentException("jobName can not be null");
        }
        if (jobName.replace(" ", "").isEmpty()) {
            throw new IllegalArgumentException("jobName can not be empty string");
        }
        this.jobName = jobName;
        return this;
    }
public SubmitJobBuilder name ( String jobName ) { if ( jobName == null ) { throw new IllegalArgumentException ( "jobName can not be null" ) ; } if ( jobName . replace ( " " , "" ) . isEmpty ( ) ) { throw new IllegalArgumentException ( "jobName can not be empty string" ) ; } this . jobName = jobName ; return this ; }
Set job name.
Set job name .