@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        sb.append("ExpirationInDays: ").append(expirationInDays).append(",");
        sb.append("IsRequesterPays").append(isRequesterPays()).append(",");

        if (getBucketName() != null)
            sb.append("BucketName: ").append(getBucketName()).append(",");
        if (getKey() != null)
            sb.append("Key: ").append(getKey()).append(",");
        if (getVersionId() != null)
            sb.append("VersionId: ").append(getVersionId()).append(",");
        if (getGlacierJobParameters() != null)
            sb.append("GlacierJobParameters: ").append(getGlacierJobParameters()).append(",");
        if (getType() != null)
            sb.append("RestoreRequestType: ").append(getType()).append(",");
        if (getTier() != null)
            sb.append("Tier: ").append(getTier()).append(",");
        if (getDescription() != null)
            sb.append("Description: ").append(getDescription()).append(",");
        if (getSelectParameters() != null)
            sb.append("SelectParameters: ").append(getSelectParameters()).append(",");
        if (getOutputLocation() != null)
            sb.append("OutputLocation").append(getOutputLocation());
        sb.append("}");
        return sb.toString();
    }
Sets the location where the restore job's output is stored.

@param outputLocation New value for output location
@return This object for method chaining.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/RestoreObjectRequest.java