public DeploymentJob withFailureCode(DeploymentJobErrorCode failureCode) {
        this.failureCode = failureCode.toString();
        return this;
    }
<p>
The deployment job failure code.
</p>

@param failureCode
       The deployment job failure code.
@return Returns a reference to this object so that method calls can be chained together.
@see DeploymentJobErrorCode
aws-java-sdk-robomaker/src/main/java/com/amazonaws/services/robomaker/model/DeploymentJob.java