@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getTrainingJob() != null)
            sb.append("TrainingJob: ").append(getTrainingJob()).append(",");
        if (getExperiment() != null)
            sb.append("Experiment: ").append(getExperiment()).append(",");
        if (getTrial() != null)
            sb.append("Trial: ").append(getTrial()).append(",");
        if (getTrialComponent() != null)
            sb.append("TrialComponent: ").append(getTrialComponent()).append(",");
        if (getEndpoint() != null)
            sb.append("Endpoint: ").append(getEndpoint()).append(",");
        if (getModelPackage() != null)
            sb.append("ModelPackage: ").append(getModelPackage()).append(",");
        if (getModelPackageGroup() != null)
            sb.append("ModelPackageGroup: ").append(getModelPackageGroup()).append(",");
        if (getPipeline() != null)
            sb.append("Pipeline: ").append(getPipeline()).append(",");
        if (getPipelineExecution() != null)
            sb.append("PipelineExecution: ").append(getPipelineExecution()).append(",");
        if (getFeatureGroup() != null)
            sb.append("FeatureGroup: ").append(getFeatureGroup()).append(",");
        if (getFeatureMetadata() != null)
            sb.append("FeatureMetadata: ").append(getFeatureMetadata()).append(",");
        if (getProject() != null)
            sb.append("Project: ").append(getProject()).append(",");
        if (getHyperParameterTuningJob() != null)
            sb.append("HyperParameterTuningJob: ").append(getHyperParameterTuningJob()).append(",");
        if (getModelCard() != null)
            sb.append("ModelCard: ").append(getModelCard()).append(",");
        if (getModel() != null)
            sb.append("Model: ").append(getModel());
        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/SearchRecord.java