@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getOptimizationJobArn() != null)
            sb.append("OptimizationJobArn: ").append(getOptimizationJobArn()).append(",");
        if (getOptimizationJobStatus() != null)
            sb.append("OptimizationJobStatus: ").append(getOptimizationJobStatus()).append(",");
        if (getOptimizationStartTime() != null)
            sb.append("OptimizationStartTime: ").append(getOptimizationStartTime()).append(",");
        if (getOptimizationEndTime() != null)
            sb.append("OptimizationEndTime: ").append(getOptimizationEndTime()).append(",");
        if (getCreationTime() != null)
            sb.append("CreationTime: ").append(getCreationTime()).append(",");
        if (getLastModifiedTime() != null)
            sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(",");
        if (getFailureReason() != null)
            sb.append("FailureReason: ").append(getFailureReason()).append(",");
        if (getOptimizationJobName() != null)
            sb.append("OptimizationJobName: ").append(getOptimizationJobName()).append(",");
        if (getModelSource() != null)
            sb.append("ModelSource: ").append(getModelSource()).append(",");
        if (getOptimizationEnvironment() != null)
            sb.append("OptimizationEnvironment: ").append(getOptimizationEnvironment()).append(",");
        if (getDeploymentInstanceType() != null)
            sb.append("DeploymentInstanceType: ").append(getDeploymentInstanceType()).append(",");
        if (getOptimizationConfigs() != null)
            sb.append("OptimizationConfigs: ").append(getOptimizationConfigs()).append(",");
        if (getOutputConfig() != null)
            sb.append("OutputConfig: ").append(getOutputConfig()).append(",");
        if (getOptimizationOutput() != null)
            sb.append("OptimizationOutput: ").append(getOptimizationOutput()).append(",");
        if (getRoleArn() != null)
            sb.append("RoleArn: ").append(getRoleArn()).append(",");
        if (getStoppingCondition() != null)
            sb.append("StoppingCondition: ").append(getStoppingCondition()).append(",");
        if (getVpcConfig() != null)
            sb.append("VpcConfig: ").append(getVpcConfig());
        sb.append("}");
        return sb.toString();
    }
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
redacted from this string using a placeholder value.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/DescribeOptimizationJobResult.java