public DataReplicationError withError(DataReplicationErrorString error) {
        this.error = error.toString();
        return this;
    }
<p>
Error in data replication.
</p>

@param error
       Error in data replication.
@return Returns a reference to this object so that method calls can be chained together.
@see DataReplicationErrorString
aws-java-sdk-drs/src/main/java/com/amazonaws/services/drs/model/DataReplicationError.java